Skip to content

fix: place UniversalObjectCratesClassReflectionExtension last #4207

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Aug 5, 2025

Hello!

This moves the UniversalObjectCratesClassReflectionExtension to the very end of the extensions to give other extensions a chance to override.

Closes phpstan/phpstan#13342

Thanks!

@calebdw
Copy link
Contributor Author

calebdw commented Aug 5, 2025

None of the failed jobs look like they came from these changes? Let me know if I need to change anything though!

@staabm
Copy link
Contributor

staabm commented Aug 5, 2025

Fix the lint job by make cs-fix

@calebdw
Copy link
Contributor Author

calebdw commented Aug 5, 2025

@staabm, I can do that, but that's from a file upstream that wasn't touched in this PR

@ondrejmirtes
Copy link
Member

The changes are fine, I just don't understand why this has to be E2E test. It could be just a test for a specific rule. The config doesn't even add anything, stdClass is already universal object crate.

@calebdw
Copy link
Contributor Author

calebdw commented Aug 6, 2025

Ah, I just wasn't sure where to put the test, is there a specific location you would like it to go?

@ondrejmirtes
Copy link
Member

Looking at the bug report simply putting the file in tests/PHPStan/Analyser/nsrt should be fine

This moves the UniversalObjectCratesClassReflectionExtension to the very
end of the extensions to give other extensions a chance to override.
@calebdw calebdw force-pushed the calebdw/push-qwwyztoormwo branch from b28ea6c to 820a955 Compare August 6, 2025 13:45
@calebdw
Copy link
Contributor Author

calebdw commented Aug 6, 2025

Awesome, I've updated

@ondrejmirtes ondrejmirtes merged commit c0e6f0e into phpstan:2.1.x Aug 6, 2025
447 of 453 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@calebdw calebdw deleted the calebdw/push-qwwyztoormwo branch August 6, 2025 14:08
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.

Check mixins before falling back to mixed for universal object crates
3 participants