1 | <?php |
||
15 | class SystemParams extends Component implements BootstrapInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | public $commandMap = []; |
||
21 | |||
22 | /** |
||
23 | * @var array table settings |
||
24 | */ |
||
25 | public $modelMap = []; |
||
26 | |||
27 | /** |
||
28 | * Cache durations. |
||
29 | * |
||
30 | * @var int |
||
31 | */ |
||
32 | public $cacheDuration; |
||
33 | |||
34 | /** |
||
35 | * System params service instance |
||
36 | * |
||
37 | * @var null |
||
38 | */ |
||
39 | private static $service; |
||
40 | |||
41 | /** |
||
42 | * Init components, Merge config. |
||
43 | */ |
||
44 | public function bootstrap($app) |
||
70 | |||
71 | /** |
||
72 | * Get parameter |
||
73 | * |
||
74 | * @param string $param |
||
75 | * @param mixed $default |
||
76 | * |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public static function getParam(string $param, $default = null) |
||
85 | } |
||
86 |
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..