ReservedNames: refactor to allow for detecting more reserved names by jrfnl · Pull Request #1592 · PHPCompatibility/PHPCompatibility
This commit adjusts the `Namespaces\ReservedNames` sniff to allow it to check for multiple namespaces (not just the `PHP` top-level namespace) and adds detection of namespace declarations using the top-level name `FFI` (as introduced in PHP 7.4) to the sniff. Includes tests.
wimg approved these changes Aug 4, 2023
wimg
deleted the
feature/namespaces-reservednames-refactor
branch
jrfnl
mentioned this pull request
40 tasks
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