Conditions | 3 |
Paths | 5 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | protected function streamWrite($stream, array $record) |
||
41 | { |
||
42 | try{ |
||
43 | if ($this->nonBlockStream === null) { |
||
44 | $this->nonBlockStream = new WritableResourceStream($stream, $this->eventLoop); |
||
45 | } |
||
46 | $this->nonBlockStream->write((string) $record['formatted']); |
||
47 | } catch (\RuntimeException $exception) { |
||
48 | //Polyfill |
||
49 | parent::streamWrite($stream, $record); |
||
50 | } |
||
51 | } |
||
52 | } |