-
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DowngradePhp73] Skip inside define check on DowngradePhp73JsonConstR…
…ector (#1787) * [DowngradePhp73] Skip inside define check on DowngradePhp73JsonConstRector * Fixed 🎉
- Loading branch information
1 parent
f03e2a1
commit cd7140a
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.../Rector/ConstFetch/DowngradePhp73JsonConstRector/Fixture/skip_inside_define_check.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\DowngradePhp73\Rector\FuncCall\DowngradePhp73JsonConstRector\Fixture; | ||
|
||
class SkipInsideDefineCheck | ||
{ | ||
public function run($options) | ||
{ | ||
if (\defined('JSON_THROW_ON_ERROR')) { | ||
$options = $options & ~\JSON_THROW_ON_ERROR; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters