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(): compatibility with the PHP 8 identifier name tokenization #211

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 13, 2020

The PassedParameters::hasParameters() does a token based check on whether or not the passed token is one which is handled by this method, as well as the other methods in this class.

That check now needs to take the PHP 8 identifier name tokens into account and should treat them as the same as T_STRING, i.e. as as suspected function call.

This commit adjusts the PassedParameters::hasParameters() method to allow for these new tokens.

Includes additional unit tests covering the different tokens.

…ifier name tokenization

The `PassedParameters::hasParameters()` does a token based check on whether or not the passed token is one which is handled by this method, as well as the other methods in this class.

That check now needs to take the PHP 8 identifier name tokens into account and should treat them as the same as `T_STRING`, i.e. as as suspected function call.

This commit adjusts the `PassedParameters::hasParameters()` method to allow for these new tokens.

Includes additional unit tests covering the different tokens.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 13, 2020
@jrfnl jrfnl merged commit 622ea05 into develop Sep 13, 2020
@jrfnl jrfnl deleted the php-8.0/passedparameters-hasparameters-identifier-name-compatibility branch September 13, 2020 20: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.

None yet

1 participant