1 | <?php declare(strict_types=1); |
||
25 | class API extends Model { |
||
26 | |||
27 | use ContainerAware; |
||
28 | |||
29 | /** |
||
30 | * Config manager |
||
31 | * @var ConfigInterface |
||
32 | */ |
||
33 | protected $config; |
||
34 | |||
35 | /** |
||
36 | * Cache manager |
||
37 | * @var \Psr\Cache\CacheItemPoolInterface |
||
38 | */ |
||
39 | protected $cache; |
||
40 | |||
41 | /** |
||
42 | * Constructor |
||
43 | * |
||
44 | * @param ContainerInterface $container |
||
|
|||
45 | */ |
||
46 | public function __construct(ContainerInterface $container) |
||
51 | |||
52 | /** |
||
53 | * Sort the list entries by their title |
||
54 | * |
||
55 | * @codeCoverageIgnore |
||
56 | * @param array $array |
||
57 | * @param string $sort_key |
||
58 | * @return void |
||
59 | */ |
||
60 | protected function sortByName(array &$array, string $sort_key) |
||
71 | } |
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.