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

Enabling constructor check for class-string variables #3661

Open
wants to merge 4 commits into
base: 2.0.x
Choose a base branch
from

Conversation

sayuprc
Copy link
Contributor

@sayuprc sayuprc commented Nov 24, 2024

Changed to check constructor arguments when creating an instance from a variable containing a class-string.
Skip checking if T in class-string is abstract or interface.

resolve phpstan/phpstan#12010

@sayuprc sayuprc force-pushed the resolve-12010 branch 2 times, most recently from 7663d06 to f6c5c24 Compare November 24, 2024 05:17
@sayuprc sayuprc marked this pull request as draft November 24, 2024 05:46
@sayuprc sayuprc marked this pull request as ready for review November 24, 2024 14:56
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

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.

Constructor args are not checked in new $class(...) when the $class is class-string
2 participants