Skip to content

Commit

Permalink
Update Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 6, 2023
1 parent 13da0e7 commit e1ead5d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^9.5.4",
"rector/rector": "^0.14.3",
"rector/rector": "^0.15",
"vaimo/composer-patches": "^4.22"
},
"config": {
Expand Down
20 changes: 9 additions & 11 deletions composer.lock

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

15 changes: 12 additions & 3 deletions patches/NameNodeMapper.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@package rector/rector

--- packages/StaticTypeMapper/PhpParser/NameNodeMapper.php 2022-09-23 11:46:53.000000000 +0200
+++ packages/StaticTypeMapper/PhpParser/NameNodeMapper.php 2022-09-27 11:05:58.000000000 +0200
--- packages/StaticTypeMapper/PhpParser/NameNodeMapper.php 2023-01-06 14:56:29.000000000 +0100
+++ packages/StaticTypeMapper/PhpParser/NameNodeMapper.php 2023-01-06 14:57:51.000000000 +0100
@@ -14,6 +14,7 @@
use PHPStan\Type\FloatType;
use PHPStan\Type\IntegerType;
Expand All @@ -10,7 +10,16 @@
use PHPStan\Type\ObjectWithoutClassType;
use PHPStan\Type\StaticType;
use PHPStan\Type\StringType;
@@ -107,7 +108,7 @@
@@ -102,7 +103,7 @@
return new StaticType($classReflection);
}
if ($reference === ObjectReference::SELF) {
- return new SelfStaticType($classReflection);
+ return new ObjectType($classReflection->getName());
}
if ($reference === ObjectReference::PARENT) {
$parentClassReflection = $classReflection->getParentClass();
@@ -111,7 +112,7 @@
}
return new ParentObjectWithoutClassType();
}
Expand Down

0 comments on commit e1ead5d

Please sign in to comment.