2020 * path?: array<int, int|string>,
2121 * extensions?: array<string, mixed>
2222 * }
23- * @phpstan-type SerializableErrors array<int, SerializableError>
23+ * @phpstan-type SerializableErrors list< SerializableError>
2424 * @phpstan-type SerializableResult array{
2525 * data?: array<string, mixed>,
2626 * errors?: SerializableErrors,
2727 * extensions?: array<string, mixed>
2828 * }
2929 * @phpstan-type ErrorFormatter callable(\Throwable): SerializableError
30- * @phpstan-type ErrorsHandler callable(array <Error> $errors, ErrorFormatter $formatter): SerializableErrors
30+ * @phpstan-type ErrorsHandler callable(list <Error> $errors, ErrorFormatter $formatter): SerializableErrors
3131 *
3232 * @see \GraphQL\Tests\Executor\ExecutionResultTest
3333 */
@@ -50,7 +50,7 @@ class ExecutionResult implements \JsonSerializable
5050 *
5151 * @api
5252 *
53- * @var array <Error>
53+ * @var list <Error>
5454 */
5555 public array $ errors = [];
5656
@@ -79,7 +79,7 @@ class ExecutionResult implements \JsonSerializable
7979
8080 /**
8181 * @param array<string, mixed>|null $data
82- * @param array <Error> $errors
82+ * @param list <Error> $errors
8383 * @param array<string, mixed> $extensions
8484 */
8585 public function __construct (?array $ data = null , array $ errors = [], array $ extensions = [])
0 commit comments