Total Complexity | 6 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class Reference implements MappingStrategy |
||
10 | { |
||
11 | 4 | public static function hydrate(&$value, array $attributes = [], Manager $manager = null): void |
|
12 | { |
||
13 | 4 | if ($value) { |
|
14 | try { |
||
15 | 4 | $value = $manager->get($attributes['target'], $value); |
|
|
|||
16 | 2 | } catch (\Exception $e) { |
|
17 | 2 | $value = null; |
|
18 | } |
||
19 | } |
||
20 | 4 | } |
|
21 | |||
22 | 1 | public static function extract(&$value, array $attributes = [], Manager $manager = null): void |
|
28 | } |
||
29 | 1 | } |
|
31 |
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.