Skip to content

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
@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.

2 participants