Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
||
22 | class Callback extends AbstractAttribute |
||
23 | { |
||
24 | /** |
||
25 | * @param string $name The javascript object name |
||
26 | */ |
||
27 | public function __construct(private string $name) |
||
28 | {} |
||
29 | |||
30 | /** |
||
31 | * @inheritDoc |
||
32 | */ |
||
33 | public function saveValue(Metadata $xMetadata, string $sMethod = '*'): void |
||
36 | } |
||
37 | } |
||
38 |
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.