You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
don't forget scope-expressions on $this after static method call #13735
If we were talking about $this->getFoo() method, the method itself could reference a static property in its body, so self::assertTrue() still needs to invalidate $this->getFoo().
Activity
ondrejmirtes commentedon Oct 29, 2025
But only for properties on
$this.If we were talking about
$this->getFoo()method, the method itself could reference a static property in its body, soself::assertTrue()still needs to invalidate$this->getFoo().staabm commentedon Oct 29, 2025
good point. the repro in phpstan/phpstan-phpunit#229 contains a static property access.. so this fix here would not fix the phpstan-phpunit bug
staabm commentedon Oct 30, 2025
but also for private properties on
self::?Fix phpstan/phpstan#13735: Don't forget $this property types after st…
staabm commentedon Sep 7, 2026
another repro https://phpstan.org/r/20f51e02-6d5f-421a-8797-0286f63a45fb
Keep property fetches on the receiver when a static method or static …
github-actions commentedon Oct 10, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.