Return value of zip_open #4324
-
I have some code like this: $zip = zip_open($file);
if (is_resource($zip)) {
// do something
} else {
// do something else
} PHPStan flags this with Bug? Or am I thinking about this the wrong way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, please send a PR that updates the function signature in https://github.com/phpstan/phpstan-src/blob/master/resources/functionMap.php, thanks :) |
Beta Was this translation helpful? Give feedback.
Hi, please send a PR that updates the function signature in https://github.com/phpstan/phpstan-src/blob/master/resources/functionMap.php, thanks :)