Skip to content

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

Merged
jrfnl merged 1 commit into
developfrom
php-8.0/bcfile-various-identifier-name-compatibility
Sep 13, 2020
Merged

BCFile/various methods: compatibility with the PHP 8 identifier name tokenization#213
jrfnl merged 1 commit into
developfrom
php-8.0/bcfile-various-identifier-name-compatibility

Conversation

@jrfnl

@jrfnl jrfnl commented Sep 13, 2020

Copy link
Copy Markdown
Member

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

Development

Successfully merging this pull request may close these issues.

1 participant