Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait PlaceholderTrait |
||
10 | { |
||
11 | private ?string $placeholder = null; |
||
12 | private bool $setPlaceholder = true; |
||
13 | |||
14 | public function placeholder(?string $placeholder): self |
||
15 | { |
||
16 | $new = clone $this; |
||
17 | $new->placeholder = $placeholder; |
||
18 | return $new; |
||
19 | } |
||
20 | |||
21 | public function doNotSetPlaceholder(): self |
||
22 | { |
||
23 | $new = clone $this; |
||
24 | $new->setPlaceholder = false; |
||
25 | return $new; |
||
26 | } |
||
27 | |||
28 | protected function preparePlaceholderInInputTag(Tag $tag): Tag |
||
41 | } |
||
42 | } |
||
43 |
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.