1 | <?php namespace Understand\UnderstandLaravel5; |
||
5 | class EventLogger |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Log writer |
||
10 | * |
||
11 | * @var Logger |
||
12 | */ |
||
13 | protected $logger; |
||
14 | |||
15 | /** |
||
16 | * Configuration |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $config; |
||
21 | |||
22 | /** |
||
23 | * @param Logger $logger |
||
24 | * @param Repository $config |
||
25 | */ |
||
26 | public function __construct( |
||
34 | |||
35 | /** |
||
36 | * @param $level |
||
37 | * @param $message |
||
38 | * @param $context |
||
39 | */ |
||
40 | public function logEvent($level, $message, $context) |
||
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | */ |
||
71 | protected function getMetaFields() |
||
84 | } |
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..