We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -22,7 +22,7 @@ |
||
22 | 22 | $this->expectExceptionMessage( |
23 | 23 | 'Enum class "invalid_class" does not exist.', |
24 | 24 | ); |
25 | - new PhpEnumType([ // @phpstan-ignore-line |
|
25 | + new PhpEnumType([// @phpstan-ignore-line |
|
26 | 26 | 'name' => 'MyEnum', |
27 | 27 | 'enumClass' => 'invalid_class', |
28 | 28 | ]); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | private ?ResolverArgs $__resolverArgs; |
50 | 50 | |
51 | 51 | public function __construct( |
52 | - ObjectType|InputObjectType $type, |
|
52 | + ObjectType | InputObjectType $type, |
|
53 | 53 | string $field = null, |
54 | 54 | ValidationNode $parent = null, |
55 | 55 | ResolverArgs $resolverArgs = null |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function getBuilder(string $name, ?string $queryAlias, string $mutationAlias = null, string $subscriptionAlias = null, array $types = []): Closure |
27 | 27 | { |
28 | - return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema { |
|
28 | + return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types) : ExtensibleSchema { |
|
29 | 29 | static $schema = null; |
30 | 30 | if (null === $schema) { |
31 | 31 | $schema = $this->create($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * @throws ArgumentsValidationException |
65 | 65 | */ |
66 | - public function validate(string|array $groups = null, bool $throw = true): ?ConstraintViolationListInterface |
|
66 | + public function validate(string | array $groups = null, bool $throw = true): ?ConstraintViolationListInterface |
|
67 | 67 | { |
68 | 68 | $rootNode = new ValidationNode( |
69 | 69 | $this->info->parentType, |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return $rootObject; |
210 | 210 | } |
211 | 211 | |
212 | - private static function isListOfType(GeneratedTypeInterface|ListOfType|NonNull $type): bool |
|
212 | + private static function isListOfType(GeneratedTypeInterface | ListOfType | NonNull $type): bool |
|
213 | 213 | { |
214 | 214 | if ($type instanceof ListOfType || ($type instanceof NonNull && $type->getWrappedType() instanceof ListOfType)) { |
215 | 215 | return true; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | return false; |
219 | 219 | } |
220 | 220 | |
221 | - private function createCollectionNode(array $values, ObjectType|InputObjectType $type, ValidationNode $parent): array |
|
221 | + private function createCollectionNode(array $values, ObjectType | InputObjectType $type, ValidationNode $parent): array |
|
222 | 222 | { |
223 | 223 | $collection = []; |
224 | 224 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | return $collection; |
230 | 230 | } |
231 | 231 | |
232 | - private function createObjectNode(array $value, ObjectType|InputObjectType $type, ValidationNode $parent): ValidationNode |
|
232 | + private function createObjectNode(array $value, ObjectType | InputObjectType $type, ValidationNode $parent): ValidationNode |
|
233 | 233 | { |
234 | 234 | /** @phpstan-ignore-next-line */ |
235 | 235 | $classValidation = static::normalizeConfig($type->config['validation'] ?? []); |