Skip to content

Commit 90bc821

Browse files
committed
null if not error
1 parent 3c1db89 commit 90bc821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/ErrorType/ValidationErrorType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected function _addCodeAndMessageFields(array $config, array &$fields, array
239239
'type' => Type::string(),
240240
'description' => 'An error message.',
241241
'resolve' => static function ($error) {
242-
return $error[static::MESSAGE_NAME] ?? '';
242+
return $error[static::MESSAGE_NAME] ?? null;
243243
},
244244
];
245245
} else {

0 commit comments

Comments
 (0)