1 | <?php declare(strict_types = 1); |
||
23 | class Value implements PropertyConfiguratorInterface, ParameterConfiguratorInterface, AttributeConfiguratorInterface |
||
24 | { |
||
25 | /** @var string Configurator key */ |
||
26 | const KEY = 'value'; |
||
27 | |||
28 | /** |
||
29 | * @var string Property/Parameter value |
||
30 | */ |
||
31 | protected $value; |
||
32 | |||
33 | /** |
||
34 | * Class collection configurator constructor. |
||
35 | * |
||
36 | * @param string $className Class name |
||
|
|||
37 | */ |
||
38 | public function __construct(string $value) |
||
42 | |||
43 | /* {@inheritDoc} */ |
||
44 | public function toPropertyMetadata(PropertyMetadata $propertyMetadata) |
||
48 | |||
49 | /* {@inheritDoc} */ |
||
50 | public function toParameterMetadata(ParameterMetadata $parameterMetadata) |
||
54 | } |
||
55 |
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.