We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1df24a commit 39fab8cCopy full SHA for 39fab8c
src/CommandLineParser.php
@@ -21,7 +21,7 @@ public function __construct(mixed $parser = null)
21
if ($handler !== false) {
22
$fileData = fread(
23
$handler,
24
- is_int($filesize) ? $filesize : 1
+ ($filesize !== false) ? $filesize : 1
25
);
26
$this->parserDescriptor = is_string($fileData) ? $fileData : "";
27
fclose($handler);
0 commit comments