ReservedNames: refactor to allow for detecting more reserved names by jrfnl · Pull Request #1592 · PHPCompatibility/PHPCompatibility

@jrfnl

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

wimg approved these changes Aug 4, 2023

@wimg wimg deleted the feature/namespaces-reservednames-refactor branch

August 4, 2023 18:14

@jrfnl jrfnl mentioned this pull request

Aug 4, 2023

40 tasks