PHP 8.3: New sniff to detect dynamic class constant fetch by afilina · Pull Request #1974 · PHPCompatibility/PHPCompatibility
added 2 commits
October 30, 2025 10:37
jrfnl
changed the title
Dynamic class constant fetch
PHP 8.3 | New sniff to detect dynamic class constant fetch
The three groups of tests are: - Explicitly targeted by the sniff and found on unsupported version - Same above, but not found on supported versions - Cases that are not the sniff's target, but using similar tokens or syntax that might throw false positives Added a parse error test case, since PHPCS can be used as a plugin, and so will run on code still being typed (live coding).
jrfnl
mentioned this pull request
35 tasks
afilina
changed the title
PHP 8.3 | New sniff to detect dynamic class constant fetch
PHP 8.3: New sniff to detect dynamic class constant fetch
jrfnl
mentioned this pull request
afilina
deleted the
dynamic-class-constant-fetch
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters