1 | <?php namespace Understand\UnderstandLaravel5; |
||
7 | class ExceptionLogger |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Log writer |
||
12 | * |
||
13 | * @var Logger |
||
14 | */ |
||
15 | protected $logger; |
||
16 | |||
17 | /** |
||
18 | * Exception encoder |
||
19 | * |
||
20 | * @var ExceptionEncoder |
||
21 | */ |
||
22 | protected $encoder; |
||
23 | |||
24 | /** |
||
25 | * Configuration |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $config; |
||
30 | |||
31 | /** |
||
32 | * @param Logger $logger |
||
33 | * @param ExceptionEncoder $encoder |
||
34 | * @param Repository $config |
||
35 | */ |
||
36 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * Send PHP exception to Understand.io |
||
51 | * |
||
52 | * @deprecated |
||
53 | * @param mixed $error |
||
54 | * @return void |
||
55 | */ |
||
56 | public function log($error) |
||
67 | |||
68 | /** |
||
69 | * @param string $level |
||
70 | * @param mixed $message |
||
71 | * @param mixed $context |
||
72 | * @return void |
||
73 | */ |
||
74 | public function logError($level, $message, $context) |
||
109 | |||
110 | /** |
||
111 | * @param array $errorArr |
||
112 | * @return array |
||
113 | */ |
||
114 | protected function dispatch(array $errorArr) |
||
123 | |||
124 | /** |
||
125 | * @return array |
||
126 | */ |
||
127 | protected function getMetaFields() |
||
146 | |||
147 | /** |
||
148 | * @param mixed $error |
||
149 | * @return bool |
||
150 | */ |
||
151 | protected function canHandle($error) |
||
155 | } |
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..