Skip to content

ReservedNames: refactor to allow for detecting more reserved names#1592

Merged
wimg merged 1 commit intodevelopfrom
feature/namespaces-reservednames-refactor
Aug 4, 2023
Merged

ReservedNames: refactor to allow for detecting more reserved names#1592
wimg merged 1 commit intodevelopfrom
feature/namespaces-reservednames-refactor

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 4, 2023

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.

Related to #808

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.
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 4, 2023
@jrfnl jrfnl added this to the 10.0.0 milestone Aug 4, 2023
@jrfnl jrfnl requested a review from wimg August 4, 2023 14:57
@wimg wimg merged commit d0bed2f into develop Aug 4, 2023
@wimg wimg deleted the feature/namespaces-reservednames-refactor branch August 4, 2023 18:14
@github-actions github-actions bot removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants