Skip to content

FunctionDeclarations/NonStaticMagicMethods: start using PHPCSUtils 1.1.0 getDeclaredMethods() #1848

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 6, 2025

PHPCSUtils 1.1.0 introduces a new ObjectDeclarations::getDeclaredMethods() method which can retrieve a list of all methods declared in an OO structure.

This method is highly optimized and will cache its results, which means that if multiple sniffs use the method, the results will be instantaneously returned on subsequent uses.

…1.0 getDeclaredMethods()

PHPCSUtils 1.1.0 introduces a new `ObjectDeclarations::getDeclaredMethods()` method which can retrieve a list of all methods declared in an OO structure.

This method is highly optimized and will cache its results, which means that if multiple sniffs use the method, the results will be instantaneously returned on subsequent uses.
@jrfnl jrfnl added this to the 10.0.0 milestone Aug 6, 2025
@jrfnl jrfnl requested a review from wimg August 6, 2025 21:50
@jrfnl jrfnl added chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant