Skip to content

Commit 0174a7d

Browse files
committed
bump
1 parent bdbd022 commit 0174a7d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
88
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
99
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
10-
use Rector\PHPUnit\Set\PHPUnitSetList;
1110

1211
return RectorConfig::configure()
1312
->withImportNames(removeUnusedImports: true)
1413
->withPhpSets(php82: true)
15-
->withSets([PHPUnitSetList::PHPUNIT_100, PHPUnitSetList::PHPUNIT_CODE_QUALITY])
14+
->withComposerBased(phpunit: true)
1615
->withPreparedSets(
1716
deadCode: true,
1817
codeQuality: true,
@@ -21,7 +20,8 @@
2120
privatization: true,
2221
naming: true,
2322
earlyReturn: true,
24-
rectorPreset: true
23+
rectorPreset: true,
24+
phpunitCodeQuality: true,
2525
)->withPaths([
2626
__DIR__ . '/src',
2727
__DIR__ . '/rules',

rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ private function markConstantKnownInInnerStmts(If_ $if): void
118118
SimpleNodeTraverser::decorateWithAttributeValue($if, self::PHP73_JSON_CONSTANT_IS_KNOWN, true);
119119
}
120120

121-
private function resolveFuncCall(Expression $Expression): ?FuncCall
121+
private function resolveFuncCall(Expression $expression): ?FuncCall
122122
{
123-
$expr = $Expression->expr;
123+
$expr = $expression->expr;
124124
if ($expr instanceof Assign) {
125125
if ($expr->expr instanceof FuncCall) {
126126
return $expr->expr;

0 commit comments

Comments
 (0)