1 | <?php |
||
8 | class PropertyGuesser implements FieldGuesserInterface |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | public function guessFieldResolveConfig(FieldContext $fieldContext) |
||
28 | |||
29 | /** |
||
30 | * @param string $className |
||
31 | * @param FieldContext $field |
||
|
|||
32 | * @return string|null |
||
33 | */ |
||
34 | private function getAccessor($className, FieldContext $fieldContext) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function guessFieldType(FieldContext $fieldContext) |
||
67 | } |
||
68 |
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.