| 1 | <?php |
||
| 8 | class ConsoleFileLogger extends CFileLogRoute |
||
| 9 | {
|
||
| 10 | public $showLog = true; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var CFileLogRoute $logger |
||
| 14 | */ |
||
| 15 | private $logger; |
||
| 16 | |||
| 17 | public function __construct($fileName) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $message |
||
| 29 | */ |
||
| 30 | public function log($message) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $message |
||
| 40 | */ |
||
| 41 | public function warning($message) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $message |
||
| 51 | */ |
||
| 52 | public function error($message) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Сохраняет лог в файл с очисткой сообщений из памяти |
||
| 63 | */ |
||
| 64 | public function flush() |
||
| 68 | |||
| 69 | public function __destruct() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Сохраняет лог в файл, сообщения остаются в памяти при прямом вызове метода |
||
| 76 | */ |
||
| 77 | public function onFlush() |
||
| 81 | } |
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..