You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of PHPCS 4.0, the `File::getMemberProperties()` method:
* ... will handle properties in interfaces to support PHP 8.4, in which this is now allowed.
* ... will no longer throw a parse error warning.
This commit makes the necessary updates in PHPCSUtils for the same:
* Adds `T_INTERFACE` to the `Collections::ooPropertyScopes()` for PHP 8.4 properties in interfaces support.
* Updates the test expectations for the `Scopes::isOOProperty()` method to allow for PHP 8.4 properties in interfaces.
* Updates the `BCFile::getMemberProperties()` polyfill to mirror the PHPCS 4.0 version of the method.
* Updates various tests for both the `BCFile::getMemberProperties()` and the `Variables::getMemberProperties()` methods to be in line with the changes.
Ref: PHPCSStandards/PHP_CodeSniffer 991
0 commit comments