This change prevents an edge-case false negative for a namespaced self reference, when the namespace declaration would be ended by a PHP close tag instead of the expected T_SEMICOLON or T_OPEN_CURLY_BRACE.
Includes unit test.
Suggested changelog entry
Squiz.Classes.SelfMemberReference: prevent edge case false negative when the namespace declaration would end on a PHP close tag.
Related issues/external references
Related to #552
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
Description
This change prevents an edge-case false negative for a namespaced self reference, when the namespace declaration would be ended by a PHP close tag instead of the expected
T_SEMICOLON
orT_OPEN_CURLY_BRACE
.Includes unit test.
Suggested changelog entry
Squiz.Classes.SelfMemberReference: prevent edge case false negative when the namespace declaration would end on a PHP close tag.
Related issues/external references
Related to #552
Types of changes