Skip to content

Commit 88f9d30

Browse files
committed
don't pass name path to create
1 parent 689aab3 commit 88f9d30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Type/ErrorType/ValidatedFieldDefinition.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($field)
5757
parent::__construct(array_merge([
5858
'validationMode' => $field['validationMode'] ?? 'full'
5959
], [
60-
'type' => fn() => $this->userErrorsType = static::_createUserErrorsType($name, $field),
60+
'type' => fn() => $this->userErrorsType = static::_createResultType($name, $field),
6161
'args' => $args,
6262
'name' => $name,
6363
'resolve' => function ($value, $args1, $context, $info) use ($field, $args) {
@@ -82,7 +82,7 @@ public function __construct($field)
8282
/**
8383
* @phpstan-param ValidationSettings $settings
8484
*/
85-
protected function _createUserErrorsType(string $name, array $settings): ValidationErrorType
85+
protected function _createResultType(string $name, array $settings): ValidationErrorType
8686
{
8787
$args = $settings['args'];
8888
$validationErrorType = ValidationErrorType::create([
@@ -107,7 +107,7 @@ protected function _createUserErrorsType(string $name, array $settings): Validat
107107
'fields' => $args,
108108
'name' => '',
109109
]),
110-
], [$name]);
110+
]);
111111

112112
return $validationErrorType;
113113
}

0 commit comments

Comments
 (0)