Skip to content

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jan 16, 2020

The use of self::$property/static::$property in non-nested anonymous classes was incorrectly flagged as SelfOutsideClass/StaticOutsideClass (false positive).

For use within anonymous classes nested within another class, the only reason these weren't flagged was the fact that they were nested.

Fixed now.

Includes unit tests.

The use of `self::$property`/`static::$property` in non-nested anonymous classes was incorrectly flagged as `SelfOutsideClass`/`StaticOutsideClass` (false positive).

For use within anonymous classes nested within another class, the only reason these weren't flagged was the fact that they were nested.

Fixed now.

Includes unit tests.
@sirbrillig
Copy link
Owner

Thanks for finding and fixing that!

@sirbrillig sirbrillig merged commit 0b230c3 into sirbrillig:master Jan 17, 2020
@jrfnl jrfnl deleted the feature/bug-fix-self-static-in-anon-class branch January 17, 2020 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants