If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
20
/** @scrutinizer ignore-call */
21
$messages = $this->validators->errorMessages();
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.
Loading history...
21
22
/**
23
* Rewrite required to required_if for items inside conditional selects
24
*/
25
if ($this->parent() instanceof LsfConditionalSelect) {
26
foreach ($messages as $key => $rule) {
27
if (Str::endsWith($key, 'required')) {
28
$messages[$key . '_if'] = $messages[$key];
29
30
unset($messages[$key]);
31
}
32
}
33
}
34
35
return $messages;
36
}
37
38
/**
39
* Returns the Input’s response after the form has been submitted and validated