1 | <?php |
||
23 | class ExpectPlugin implements Registrar |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $configFilePath; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * @param string|null $configurationFile |
||
|
|||
34 | */ |
||
35 | public function __construct($configFilePath = null) |
||
39 | |||
40 | /** |
||
41 | * @return ExpectPlugin |
||
42 | */ |
||
43 | public static function create() |
||
47 | |||
48 | /** |
||
49 | * @param string $configFilePath |
||
50 | * @return ExpectPlugin |
||
51 | */ |
||
52 | public static function createWithConfig($configFilePath) |
||
56 | |||
57 | /** |
||
58 | * @return null|string |
||
59 | */ |
||
60 | public function getConfigurationFilePath() |
||
64 | |||
65 | /** |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function isEmptyConfig() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function registerTo(EventEmitterInterface $emitter) |
||
80 | |||
81 | public function onPeridotStart() |
||
92 | |||
93 | } |
||
94 |
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.