MainLogger: fix type ambiguity

This commit is contained in:
Dylan K. Taylor 2021-02-12 15:04:50 +00:00
parent 5c3e78e1d3
commit 2aef83e7d7
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -346,6 +346,7 @@ class MainLogger extends \AttachableThreadedLogger{
*/
private function writeLogStream($logResource) : void{
while($this->logStream->count() > 0){
/** @var string $chunk */
$chunk = $this->logStream->shift();
fwrite($logResource, $chunk);
}