Skip to content

Commit 39fab8c

Browse files
committed
update parser
1 parent f1df24a commit 39fab8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandLineParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(mixed $parser = null)
2121
if ($handler !== false) {
2222
$fileData = fread(
2323
$handler,
24-
is_int($filesize) ? $filesize : 1
24+
($filesize !== false) ? $filesize : 1
2525
);
2626
$this->parserDescriptor = is_string($fileData) ? $fileData : "";
2727
fclose($handler);

0 commit comments

Comments
 (0)