| 1 | <?php |
||
| 15 | class LaravelSequenceResolver implements SequenceResolver |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * The laravel cache instance. |
||
| 19 | * |
||
| 20 | * @var \Illuminate\Contracts\Cache\Repository |
||
| 21 | */ |
||
| 22 | protected $cache; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Init resolve instance, must connectioned. |
||
| 26 | * |
||
| 27 | * @param Redis $redis |
||
|
|
|||
| 28 | */ |
||
| 29 | public function __construct(Repository $cache) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function sequence(int $currentTime) |
||
| 50 | } |
||
| 51 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.