diff --git a/src/ValidationRuleParser.php b/src/ValidationRuleParser.php index 84a3397..0f4f3f0 100755 --- a/src/ValidationRuleParser.php +++ b/src/ValidationRuleParser.php @@ -265,8 +265,12 @@ protected static function parseParameters(string $rule, string $parameter): arra if (in_array($rule, ['regex', 'not_regex', 'notregex'], true)) { return [$parameter]; } - - return str_getcsv($parameter); + /** + * https://www.php.net/manual/en/function.str-getcsv.php + * https://php.watch/versions/8.4/csv-functions-escape-parameter + * When using PHP 8.4 the $escape must be '' + */ + return str_getcsv($parameter, ',', '"', ''); } /**