Skip to content

Commit

Permalink
Update Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 5, 2022
1 parent d09938b commit b1b9338
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 101 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^9.5.4",
"rector/rector": "0.12.5",
"rector/rector": "^0.12.10",
"vaimo/composer-patches": "^4.22"
},
"config": {
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 0 additions & 44 deletions patches/AnonymousFunctionFactory.patch

This file was deleted.

13 changes: 13 additions & 0 deletions patches/BooleanTypeMapper.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@package rector/rector

--- packages/PHPStanStaticTypeMapper/TypeMapper/BooleanTypeMapper.php 2021-12-31 13:57:22.000000000 +0100
+++ packages/PHPStanStaticTypeMapper/TypeMapper/BooleanTypeMapper.php 2022-01-05 00:05:20.000000000 +0100
@@ -45,7 +45,7 @@
}
if ($type instanceof \PHPStan\Type\Constant\ConstantBooleanType) {
// cannot be parent of union
- return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('true');
+ return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('false');
}
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('bool');
}
13 changes: 0 additions & 13 deletions patches/DowngradeTrailingCommasInFunctionCallsRector.patch

This file was deleted.

21 changes: 0 additions & 21 deletions patches/PHPStanNodeScopeResolver.patch

This file was deleted.

14 changes: 0 additions & 14 deletions patches/TypeFactory.patch

This file was deleted.

0 comments on commit b1b9338

Please sign in to comment.