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

PSR12/ControlStructureSpacing: small tweak #192

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 26, 2023

Description

No need to create a new instance of the PSR2 sniff every single time the sniff is triggered. Re-using the same object, just like is done with sniffs in general, will work just as well. This will have a (tiny) positive impact on performance, though the impact is so small, it can be considered negligible.

Suggested changelog entry

N/A

No need to create a new instance of the PSR2 sniff every single time the sniff is triggered. Re-using the same object, just like is done with sniffs in general, will work just as well.
This will have a (tiny) positive impact on performance, though the impact is so small, it can be considered negligible.
@jrfnl jrfnl added this to the 3.x Next milestone Dec 26, 2023
@jrfnl jrfnl merged commit a28917a into master Dec 26, 2023
44 checks passed
@jrfnl jrfnl deleted the feature/psr12-controlstructurespacing-minor-tweak branch December 26, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant