Skip to content
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

Reproduce Bug 10523 #2897

Merged
merged 8 commits into from Apr 4, 2024
Merged

Reproduce Bug 10523 #2897

merged 8 commits into from Apr 4, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Feb 1, 2024

@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@@ -355,6 +359,12 @@ private function getMethodsCalledFromConstructor(
continue;
}

if ($inMethod->getName() !== '__construct') {
Copy link
Contributor Author

@staabm staabm Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at this point we take the properties which have been assigned in __construct over to the additionalConstructor methods as described in phpstan/phpstan#10523 (comment).

@staabm
Copy link
Contributor Author

staabm commented Feb 25, 2024

I think this one is ready for a review

@ondrejmirtes
Copy link
Member

This also fixes phpstan/phpstan#10822 please add a regression test for that.

@staabm
Copy link
Contributor Author

staabm commented Apr 4, 2024

@ondrejmirtes here you are

@ondrejmirtes ondrejmirtes merged commit 677afdd into phpstan:1.10.x Apr 4, 2024
440 of 443 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants