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

PassedParameters::hasParameters(): allow for self/parent/static as function call #452

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 13, 2023

PHP allows for declaring global/OO functions called self and parent and OO functions called static.

The guard code against handling of the self/parent/static keywords when not used as a function call did not take this into account correctly.

Fixed now.

Includes additional unit tests.

…nction call

PHP allows for declaring global/OO functions called `self` and `parent` and OO functions called `static`.

The guard code against handling of the `self`/`parent`/`static` keywords when not used as a function call did not take this into account correctly.

Fixed now.

Includes additional unit tests.
@jrfnl jrfnl added this to the 1.0.x Next milestone Apr 13, 2023
@jrfnl jrfnl merged commit c0b92f7 into develop Apr 13, 2023
@jrfnl jrfnl deleted the utils/passedparameters-allow-for-hierachical-name-function-call branch April 13, 2023 02:11
@jrfnl
Copy link
Member Author

jrfnl commented May 1, 2023

Related to upstream PR squizlabs/PHP_CodeSniffer#3797

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