Skip to content

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

Development

Successfully merging this pull request may close these issues.

2 participants