Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | #[Attribute(Attribute::TARGET_METHOD)] |
||
25 | class Upload extends AbstractAttribute |
||
26 | { |
||
27 | /** |
||
28 | * @param string $field The name of the upload field |
||
29 | */ |
||
30 | public function __construct(private string $field) |
||
31 | {} |
||
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | public function saveValue(Metadata $xMetadata, string $sMethod = '*'): void |
||
39 | } |
||
40 | } |
||
41 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.