Closed Creeperface01 closed 1 year ago
It does. Make sure to install phpstan-strict-rules, or enable this option: https://phpstan.org/config-reference#checkalwaystruechecktypefunctioncall
and we're making sure that this works via https://github.com/phpstan/phpstan-webmozart-assert/blob/1.2.2/tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php#L20 😊
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.
The same issue applies probably to more checks than just this.
In this case $a is never going to be null but phpstan won't show an error