Skip to content

Commit

Permalink
[11.x] PHP 8.4 Code compatibility (#53571)
Browse files Browse the repository at this point in the history
Extract fixes to Laravel Framework for PHP 8.4 from
laravel/framework#53468 PR. This would allows
us to release fixes for our 1st party packages

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Nov 19, 2024
1 parent 33d399e commit 8936874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ValidationRuleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected static function parseStringRule($rule)
*/
protected static function parseParameters($rule, $parameter)
{
return static::ruleIsRegex($rule) ? [$parameter] : str_getcsv($parameter);
return static::ruleIsRegex($rule) ? [$parameter] : str_getcsv($parameter, escape: '\\');
}

/**
Expand Down

0 comments on commit 8936874

Please sign in to comment.