Skip to content

Commit c721459

Browse files
committed
ReturnTypeWillChange attribute class is always defined
1 parent fc57cd6 commit c721459

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nette/utils": "^3.1.3",
2424
"nikic/php-parser": "4.13.0",
2525
"ondram/ci-detector": "^3.4.0",
26-
"ondrejmirtes/better-reflection": "4.3.72",
26+
"ondrejmirtes/better-reflection": "4.3.73",
2727
"phpstan/php-8-stubs": "^0.1.23",
2828
"phpstan/phpdoc-parser": "^1.2.0",
2929
"react/child-process": "^0.6.4",

composer.lock

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

src/Reflection/BetterReflection/SourceLocator/SkipClassAliasSourceLocator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public function locateIdentifier(Reflector $reflector, Identifier $identifier):
2727
}
2828

2929
$reflection = new \ReflectionClass($className);
30+
if ($reflection->getName() === 'ReturnTypeWillChange') {
31+
return $this->sourceLocator->locateIdentifier($reflector, $identifier);
32+
}
3033
if ($reflection->getFileName() === false) {
3134
return $this->sourceLocator->locateIdentifier($reflector, $identifier);
3235
}

0 commit comments

Comments
 (0)