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

BCFile/various methods: compatibility with the PHP 8 identifier name tokenization #213

Merged
merged 1 commit into from
Sep 13, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 13, 2020

While PHPCS itself won't backfill, nor start supporting the PHP 8 identifier name tokens until PHPCS 4.x, for compatibility with PHPCS < 3.5.7 in combination with PHP 8, the BCFile::getMethodParameters(), BCFile::isReference(), BCFile::findExtendedClassName() and BCFile::findImplementedInterfaceNames() methods still need adjusting to allow for cross-version compatibility.

Relevant unit tests for this were already added for most methods in PR #205.

For the isReference() method, select unit tests are now moved from the Diff test file to the BCFile test files.

…tokenization

While PHPCS itself won't backfill, nor start supporting the PHP 8 identifier name tokens until PHPCS 4.x, for compatibility with PHPCS < 3.5.7 in combination with PHP 8, the `BCFile::getMethodParameters()`, `BCFile::isReference()`, `BCFile::findExtendedClassName()` and `BCFile::findImplementedInterfaceNames()` methods still need adjusting to allow for cross-version compatibility.

Relevant unit tests for this were already added for most methods in PR 205.

For the `isReference()` method, select unit tests are now moved from the `Diff` test file to the `BCFile` test files.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 13, 2020
@jrfnl jrfnl merged commit 276fff0 into develop Sep 13, 2020
@jrfnl jrfnl deleted the php-8.0/bcfile-various-identifier-name-compatibility branch September 13, 2020 20:28
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