| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
||
| 22 | class Databag extends AbstractAttribute |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param string $name The data bag 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.