1 | <?php |
||
8 | class Config |
||
9 | { |
||
10 | /** |
||
11 | * @var string[] |
||
12 | */ |
||
13 | protected $paths; |
||
14 | |||
15 | /** |
||
16 | * @var LoggerInterface |
||
17 | */ |
||
18 | protected $logger; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $config; |
||
24 | |||
25 | /** |
||
26 | * @param string[] $paths |
||
27 | * @param LoggerInterface $logger |
||
|
|||
28 | */ |
||
29 | public function __construct($paths, LoggerInterface $logger = null) |
||
34 | |||
35 | /** |
||
36 | * @return self |
||
37 | */ |
||
38 | public function load() |
||
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | */ |
||
71 | public function getAll() |
||
75 | |||
76 | /** |
||
77 | * @param string $event |
||
78 | * @param bool $supportedOnly |
||
79 | * |
||
80 | * @return ActionInterface[] |
||
81 | */ |
||
82 | public function get($event, $supportedOnly = true) |
||
110 | } |
||
111 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.