Conditions | 4 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function errorMessages(): mixed |
||
20 | { |
||
21 | $messages = $this->validators->errorMessages(); |
||
22 | |||
23 | /** |
||
24 | * Rewrite required to required_if for items inside conditional selects |
||
25 | */ |
||
26 | if ($this->parent() instanceof LsfConditionalSelect) { |
||
27 | foreach ($messages as $key => $rule) { |
||
28 | if (Str::endsWith($key, 'required')) { |
||
29 | $messages[$key . '_if'] = $messages[$key]; |
||
30 | |||
31 | unset($messages[$key]); |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $messages; |
||
37 | } |
||
54 | } |
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.