Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function provideScenarios() |
||
29 | { |
||
30 | return [ |
||
31 | [ |
||
32 | \Fixture\BaseInterface::class, |
||
33 | [ |
||
34 | \Fixture\Path\ClassList\BazClass::class, |
||
35 | \Fixture\Path\ClassList\GodClass::class, |
||
36 | \Fixture\Path\FooClass::class |
||
37 | ] |
||
38 | ], |
||
39 | [ |
||
40 | \Fixture\BaseClass::class, |
||
41 | [ |
||
42 | \Fixture\Path\ExtendsBaseClass::class |
||
43 | ] |
||
44 | ], |
||
45 | [ |
||
46 | \Fixture\AbstractBase::class, |
||
47 | [ |
||
48 | \Fixture\Path\FooClass::class, |
||
49 | \Fixture\Path\ClassList\BarClass::class, |
||
50 | \Fixture\Path\ClassList\BazClass::class, |
||
51 | \Fixture\Path\ClassList\GodClass::class |
||
52 | ] |
||
53 | ] |
||
54 | ]; |
||
55 | } |
||
56 | } |
||
57 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.