Skip to content

Commit 989dcd7

Browse files
committed
Update Rector
1 parent 90cc560 commit 989dcd7

7 files changed

+22
-101
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"phpstan/phpstan-phpunit": "^1.0",
5757
"phpstan/phpstan-strict-rules": "^1.0",
5858
"phpunit/phpunit": "^9.5.4",
59-
"rector/rector": "0.12.5",
59+
"rector/rector": "^0.12.10",
6060
"vaimo/composer-patches": "^4.22"
6161
},
6262
"config": {

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/AnonymousFunctionFactory.patch

Lines changed: 0 additions & 44 deletions
This file was deleted.

patches/BooleanTypeMapper.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@package rector/rector
2+
3+
--- packages/PHPStanStaticTypeMapper/TypeMapper/BooleanTypeMapper.php 2021-12-31 13:57:22.000000000 +0100
4+
+++ packages/PHPStanStaticTypeMapper/TypeMapper/BooleanTypeMapper.php 2022-01-05 00:05:20.000000000 +0100
5+
@@ -45,7 +45,7 @@
6+
}
7+
if ($type instanceof \PHPStan\Type\Constant\ConstantBooleanType) {
8+
// cannot be parent of union
9+
- return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('true');
10+
+ return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('false');
11+
}
12+
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('bool');
13+
}

patches/DowngradeTrailingCommasInFunctionCallsRector.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

patches/PHPStanNodeScopeResolver.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

patches/TypeFactory.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)