Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | readonly class SettingsManagerHelper |
||
13 | { |
||
14 | public function __construct( |
||
15 | private ParameterBagInterface $parameterBag, |
||
16 | private AccessUrlHelper $accessUrlHelper, |
||
17 | ) {} |
||
18 | |||
19 | public function isOverridden(string $name, ?AccessUrl $accessUrl = null): bool |
||
20 | { |
||
21 | return null !== $this->getOverride($name, $accessUrl); |
||
22 | } |
||
23 | |||
24 | public function getOverride(string $name, ?AccessUrl $accessUrl = null): mixed |
||
43 | } |
||
44 | } |
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.