Fix errormessage

This commit is contained in:
Laurent Destailleur 2024-05-31 15:57:03 +02:00
parent 214c3eae76
commit ed212d0e84

View File

@ -235,7 +235,7 @@ class ParamMatchVisitor extends PluginAwarePostAnalysisVisitor
$this->code_base,
$this->context,
$messageCode ?? 'ParamMatchRegexError',
"Argument {INDEX} function {FUNCTION} can have value {STRING_LITERAL} that does not match the expected pattern '{STRING_LITERAL}'",
"Argument {INDEX} function {FUNCTION} can't have the value {STRING_LITERAL} that does not match the expected pattern '{STRING_LITERAL}'",
[$argPosition, $functionName, json_encode($argValue), $argRegex]
);
}