From f8f763c634cbf881dff4c993e54292c774428856 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Fri, 27 Oct 2023 14:14:50 +0200 Subject: [PATCH] DX: re-apply self_accessor and phpdoc_types_order by PHP CS Fixer --- Type.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Type.php b/Type.php index a6fb90a..bfb9d02 100644 --- a/Type.php +++ b/Type.php @@ -76,7 +76,7 @@ class Type * * @throws \InvalidArgumentException */ - public function __construct(string $builtinType, bool $nullable = false, string $class = null, bool $collection = false, array|Type $collectionKeyType = null, array|Type $collectionValueType = null) + public function __construct(string $builtinType, bool $nullable = false, string $class = null, bool $collection = false, array|self $collectionKeyType = null, array|self $collectionValueType = null) { if (!\in_array($builtinType, self::$builtinTypes)) { throw new \InvalidArgumentException(sprintf('"%s" is not a valid PHP type.', $builtinType)); @@ -90,7 +90,7 @@ public function __construct(string $builtinType, bool $nullable = false, string $this->collectionValueType = $this->validateCollectionArgument($collectionValueType, 6, '$collectionValueType') ?? []; } - private function validateCollectionArgument(array|Type|null $collectionArgument, int $argumentIndex, string $argumentName): ?array + private function validateCollectionArgument(array|self|null $collectionArgument, int $argumentIndex, string $argumentName): ?array { if (null === $collectionArgument) { return null;