Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 27, 2024

In todays debugging session I realized that the json throw extensions call into reflection even for non json_* calls.
accidentally spotted while working on Roave/BetterReflection#1415

move the cheaper check in front to prevent this unnecessary reflection stuff.

see

grafik

I looked arround for similar problems in other extensions but could not see additional ones.

@ondrejmirtes ondrejmirtes merged commit fd2e0a6 into phpstan:1.10.x Mar 27, 2024
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the less-reflection branch March 27, 2024 09:38
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.

2 participants