1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 14:16:42 +02:00

Fix for TypeError - stream_set_timeout() expects integer as second and third parameter

This commit is contained in:
Martin Kačmar
2016-06-15 16:30:51 +02:00
parent 03bbe04ba1
commit c02b43e0e0

View File

@@ -216,7 +216,7 @@ class SocketHandler extends AbstractProcessingHandler
$seconds = floor($this->timeout);
$microseconds = round(($this->timeout - $seconds) * 1e6);
return stream_set_timeout($this->resource, $seconds, $microseconds);
return stream_set_timeout($this->resource, (int) $seconds, (int) $microseconds);
}
/**