1 | <?php |
||
21 | class Cache implements ProviderInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var CacheInterface |
||
25 | */ |
||
26 | protected $cache; |
||
27 | |||
28 | /** |
||
29 | * @var ProviderInterface |
||
30 | */ |
||
31 | protected $provider; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $lifetime; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $namespace; |
||
42 | |||
43 | /** |
||
44 | * @param CacheInterface $cache |
||
45 | * @param ProviderInterface $provider |
||
46 | * @param int $lifetime |
||
47 | * @param string $namespace |
||
|
|||
48 | */ |
||
49 | public function __construct(CacheInterface $cache, ProviderInterface $provider, $lifetime, $namespace = null) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getEvents(\DateTime $begin, \DateTime $end, array $options = array()) |
||
77 | } |
||
78 |
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.