This last case is not correctly taken into account when determining the current namespace, which leads to false negatives.
Fixed now.
Includes test.
Suggested changelog entry
Fixed: Squiz.Classes.SelfMemberReference: false negatives when namespace keyword used as operator was encountered between the namespace declaration and the OO declaration.
Related issues/external references
Fixes #553
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
Description
Fixed now.
Includes test.
Suggested changelog entry
Fixed: Squiz.Classes.SelfMemberReference: false negatives when namespace keyword used as operator was encountered between the namespace declaration and the OO declaration.
Related issues/external references
Fixes #553
Types of changes