mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Add better check for value
This commit is contained in:
parent
d65a777641
commit
d106587737
@ -206,7 +206,7 @@ class Pool
|
||||
// For each stream that was ready, read the content.
|
||||
foreach ($needs_read as $file) {
|
||||
$buffer = fread($file, 1024);
|
||||
if (strlen($buffer) > 0) {
|
||||
if ($buffer && strlen($buffer) > 0) {
|
||||
$content[intval($file)] .= $buffer;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user