-
Notifications
You must be signed in to change notification settings - Fork 529
Fix duplicate work in AnnotationsPropertiesClassReflectionExtension->findClassReflectionWithProperty() #4268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…findClassReflectionWithProperty()
@@ -81,13 +81,11 @@ private function findClassReflectionWithProperty( | |||
} | |||
|
|||
$parentClass = $classReflection->getParentClass(); | |||
while ($parentClass !== null) { | |||
if ($parentClass !== null) { | |||
$methodWithDeclaringClass = $this->findClassReflectionWithProperty($parentClass, $parentClass, $propertyName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been marked as ready for review. |
The reproduction repo https://github.com/verfriemelt-dot-org/coverage-fail looks useful. Please copy the directory structure to e2e/ and try to run the analysis in E2E tests. |
added the e2e test with a timeout. I don't think it makes much sense to put expectations on the output of found errors. |
@@ -392,6 +392,9 @@ jobs: | |||
cd e2e/composer-version-config | |||
composer install | |||
../../bin/phpstan analyze test.php --level=0 | |||
- script: | | |||
cd e2e/bug13425 | |||
timeout 15 ../bashunit -a exit_code "1" "../../bin/phpstan analyze src/ plugins/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find where is this timeout
command coming from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a linux command line tool, usually contained in stock installations.
brew install coreutils
installs it on macos
Thank you! |
closes phpstan/phpstan#13425