1 | <?php |
||
19 | class purge_cache extends \phpbb\cron\task\base |
||
20 | { |
||
21 | /** @var config $config */ |
||
22 | protected $config; |
||
23 | |||
24 | /** @var purge $mediaembed_cache */ |
||
25 | protected $mediaembed_cache; |
||
26 | |||
27 | /** |
||
28 | * Constructor |
||
29 | * |
||
30 | * @param config $config Config object |
||
31 | * @param purge $mediaembed_cache Mediaembed cache object |
||
|
|||
32 | * @access public |
||
33 | */ |
||
34 | public function __construct(config $config, cache $mediaembed_cache) |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function run() |
||
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | public function is_runnable() |
||
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | */ |
||
67 | public function should_run() |
||
71 | } |
||
72 |
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.