Skip to content

Commit c8d2b40

Browse files
committed
Fixed error formatter
1 parent 1138e26 commit c8d2b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Errors/ErrorFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function formatErrorMessage(ValidationError $error, ?string $message = nu
218218
return preg_replace_callback(
219219
'~{([^}]+)}~imu',
220220
static function (array $m) use ($args) {
221-
if (!isset($args[$m[1]])) {
221+
if (!array_key_exists($m[1], $args)) {
222222
return $m[0];
223223
}
224224

0 commit comments

Comments
 (0)