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

Forbidd PHPUnitPhar prefixed classes #3002

Merged
merged 1 commit into from Apr 5, 2024
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 5, 2024

PHPUnit uses this unique prefix since the latest release, so we can easily detect prefixed classes.

see sebastianbergmann/phpunit@4d829e0#diff-840c8b2ea07ab3c49b8c509c41e0de93231d36254f4f4ac621bcf2d21063ce5b

regular PHPUnit classes will have a PHPUnit namespace (these are not prefixed)

@staabm staabm marked this pull request as ready for review April 5, 2024 06:13
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 2856081 into phpstan:1.10.x Apr 5, 2024
441 of 445 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the unit branch April 5, 2024 07:38
staabm referenced this pull request in sebastianbergmann/phpunit Apr 5, 2024
… some symbols where their name begins with PHPUnit\ in the future
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