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

Remove useless array casting as CallMap for stream_select is reset.

This commit is contained in:
Nicolas Giraud 2022-03-11 08:58:17 +01:00
parent 0dc435409c
commit cf1f375f24

View File

@ -365,7 +365,7 @@ class Pool
}
// For each stream that was ready, read the content.
foreach ((array)$needs_read as $file) {
foreach ($needs_read as $file) {
$buffer = fread($file, 1024);
if ($buffer !== false) {
$content[(int)$file] .= $buffer;