1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add better check for value

This commit is contained in:
Matt Brown 2017-08-18 17:10:57 -04:00
parent d65a777641
commit d106587737

View File

@ -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;
}