1 | <?php declare(strict_types=1); |
||
13 | final class StdioLogger extends AbstractLogger |
||
14 | { |
||
15 | const NEW_LINE = \PHP_EOL; |
||
16 | |||
17 | /** |
||
18 | * @var Stdio |
||
19 | */ |
||
20 | private $stdio; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $hideLevel = false; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $newLine = false; |
||
31 | |||
32 | /** |
||
33 | * @param WritableStreamInterface $stream |
||
34 | * |
||
35 | * @internal |
||
36 | */ |
||
37 | 19 | public function __construct(WritableStreamInterface $stream) |
|
41 | |||
42 | /** |
||
43 | * @param LoopInterface $loop |
||
44 | */ |
||
45 | 2 | public static function create(LoopInterface $loop): StdioLogger |
|
49 | |||
50 | 2 | public function withHideLevel(bool $hideLevel): StdioLogger |
|
57 | |||
58 | 2 | public function withNewLine(bool $newLine): StdioLogger |
|
65 | |||
66 | 18 | public function log($level, $message, array $context = []): void |
|
79 | } |
||
80 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..