Skip to content

Commit

Permalink
Fixed error formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca committed Dec 29, 2024
1 parent 1138e26 commit c8d2b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Errors/ErrorFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function formatErrorMessage(ValidationError $error, ?string $message = nu
return preg_replace_callback(
'~{([^}]+)}~imu',
static function (array $m) use ($args) {
if (!isset($args[$m[1]])) {
if (!array_key_exists($m[1], $args)) {
return $m[0];
}

Expand Down

0 comments on commit c8d2b40

Please sign in to comment.