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

Enforce safe constructor overrides with @phpstan-consistent-constructor #3687

Open
wants to merge 1 commit into
base: 1.12.x
Choose a base branch
from

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Nov 28, 2024

Closes phpstan/phpstan#12137

very much analogue to how it works for constructor parameters.

small docs changes: phpstan/phpstan#12138

@herndlm herndlm changed the base branch from 2.0.x to 1.12.x November 28, 2024 09:57
@herndlm herndlm force-pushed the consistent-constructor-visibility branch from 74e2cd5 to 92d4494 Compare November 28, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@phpstan-consistent-constructor is still unsafe if child class has a private constructor
1 participant