Closed simPod closed 3 years ago
Phpstan does not understand that Assert::true($var === 'x') means the $var is of type 'x' while with assert($var === 'x') it does.
Assert::true($var === 'x')
$var
'x'
assert($var === 'x')
The behaviour should be the same.
ok it's something else
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.
Phpstan does not understand that
Assert::true($var === 'x')
means the$var
is of type'x'
while withassert($var === 'x')
it does.The behaviour should be the same.