1 | <?php |
||
10 | class Logger |
||
11 | { |
||
12 | const DEBUG = 100; |
||
13 | const INFO = 200; |
||
14 | const NOTICE = 250; |
||
15 | const WARNING = 300; |
||
16 | const ERROR = 400; |
||
17 | const CRITICAL = 500; |
||
18 | const ALERT = 550; |
||
19 | const EMERGENCY = 600; |
||
20 | |||
21 | /** @var Logger */ |
||
22 | protected static $instance; |
||
23 | /** @var Logger */ |
||
24 | protected $logger; |
||
25 | /** @var string */ |
||
26 | protected $filename; |
||
27 | /** @var bool */ |
||
28 | protected $outputChosen = false; |
||
29 | |||
30 | 1 | protected function __construct() |
|
34 | |||
35 | 5 | public static function getInstance() |
|
42 | |||
43 | public function toConsole() |
||
49 | |||
50 | public function toFile($filename, $level = MonologLogger::DEBUG) |
||
60 | |||
61 | 5 | public function log($message, $level = MonologLogger::INFO, array $context = array()) |
|
69 | |||
70 | public function getLogger() |
||
74 | } |
||
75 |
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..