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
if (defined('CURLOPT_SSL_VERIFYHOST') && $curlOpt === CURLOPT_SSL_VERIFYHOST) {
return new UnionType([new ConstantIntegerType(0), new ConstantIntegerType(2)]);
}
again, I even think, that the constant should not be reported at all, since the IF construction makes it a optional dependency
with code like
the tool properly detects and reports a error:
doing the same within a loop in a "more dynamic" way does not report any errors:
I think - for consistency it would be helpful if the require checker could detect such constant cases.
found this inconsistency while working on phpstan/phpstan-src#1719
The text was updated successfully, but these errors were encountered: