Skip to content

Commit 646fef1

Browse files
committed
- revert change to path in coerceInputValue
1 parent 64be6d2 commit 646fef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utils/Value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function coerceInputValue($value, InputType $type, ?array $path =
132132
$coercedField = self::coerceInputValue(
133133
$fieldValue,
134134
$field->getType(),
135-
$path === null ? [$fieldName] : [...$path, $fieldName],
135+
[...$path ?? [], $fieldName],
136136
);
137137

138138
if (isset($coercedField['errors'])) {

0 commit comments

Comments
 (0)