Skip to content

Commit ceccbe4

Browse files
committed
run rector
1 parent 8c34543 commit ceccbe4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"phpstan/phpstan-webmozart-assert": "^1.2",
1313
"phpunit/phpunit": "^10.5",
1414
"rector/rector-src": "dev-main",
15-
"rector/type-perfect": "^0.1.6",
16-
"symplify/easy-coding-standard": "^12.0",
17-
"symplify/phpstan-extensions": "^11.3",
15+
"rector/type-perfect": "^0.1.8",
16+
"symplify/easy-coding-standard": "^12.3",
17+
"symplify/phpstan-extensions": "^11.4",
1818
"symplify/phpstan-rules": "^13.0",
19-
"symplify/rule-doc-generator": "^12.0",
20-
"symplify/vendor-patches": "^11.2",
19+
"symplify/rule-doc-generator": "^12.2",
20+
"symplify/vendor-patches": "^11.3",
2121
"tomasvotruba/class-leak": "^0.2.13",
2222
"tracy/tracy": "^2.10"
2323
},

rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function refactorIf(If_ $if): ?If_
9393
return null;
9494
}
9595

96-
$this->traverseNodesWithCallable($if, static function (Node $node) {
96+
$this->traverseNodesWithCallable($if, static function (Node $node): null {
9797
$node->setAttribute(self::PHP72_JSON_CONSTANT_IS_KNOWN, true);
9898
return null;
9999
});

rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function refactorIf(If_ $if): ?If_
152152
return null;
153153
}
154154

155-
$this->traverseNodesWithCallable($if, static function (Node $node) {
155+
$this->traverseNodesWithCallable($if, static function (Node $node): null {
156156
$node->setAttribute(self::PHP73_JSON_CONSTANT_IS_KNOWN, true);
157157
return null;
158158
});

rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
use ReflectionParameter;
1414
use Throwable;
1515

16-
final class SimplePhpParameterReflection implements ParameterReflection
16+
final readonly class SimplePhpParameterReflection implements ParameterReflection
1717
{
18-
private readonly ReflectionParameter $reflectionParameter;
18+
private ReflectionParameter $reflectionParameter;
1919

2020
public function __construct(ReflectionFunction $reflectionFunction, int $position)
2121
{

0 commit comments

Comments
 (0)