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
@JamesDPC Not sure about that, the mentioned function only tells phpstan that the method is supported, it does not change the type returned. When writing the issue, PHPStan assumed that the return type is always DataObject and not DataObject|null as it should be. I'm unsure wether this issue still persists, will have to recheck.
beerbohmdo
added a commit
to beerbohmdo/silverstripe-phpstan
that referenced
this issue
Feb 14, 2024
consider the following:
In this situation, phpstan will fail with an always true boolean expression.
The text was updated successfully, but these errors were encountered: