Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class Description extends Node |
||
20 | { |
||
21 | /** |
||
22 | * @var StringValue|null |
||
23 | */ |
||
24 | public ?StringValue $value = null; |
||
25 | |||
26 | /** |
||
27 | * Description constructor. |
||
28 | * |
||
29 | * @param StringValue|null $value |
||
30 | */ |
||
31 | public function __construct(?StringValue $value) |
||
32 | { |
||
33 | $this->value = $value; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function __toString(): string |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param StringValue|null $description |
||
46 | * @return static |
||
47 | */ |
||
48 | public static function create(?StringValue $description): self |
||
53 |
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.