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); |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function() {}; |
|
3 | +return function () {}; |
@@ -632,7 +632,7 @@ |
||
632 | 632 | |
633 | 633 | $config = []; |
634 | 634 | foreach($files as $file) { |
635 | - $config += self::cleanConfig($this->parser('parse', new SplFileInfo($file), $this->containerBuilder, $this->parserConfig)); |
|
635 | + $config += self::cleanConfig($this->parser('parse', new SplFileInfo($file), $this->containerBuilder, $this->parserConfig)); |
|
636 | 636 | } |
637 | 637 | |
638 | 638 | $this->assertSame([ |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | public function testUnionAutoguessed(): void |
286 | 286 | { |
287 | 287 | $this->expect('Killable', 'union', [ |
288 | - 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
288 | + 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
289 | 289 | 'resolveType' => '@=value.getType()', |
290 | 290 | ]); |
291 | 291 | } |
@@ -619,19 +619,19 @@ discard block |
||
619 | 619 | public function testInvalidPhpFiles(): void |
620 | 620 | { |
621 | 621 | $files = [ |
622 | - __DIR__ . '/fixtures/annotations/Invalid/HasNoClass.php', |
|
623 | - __DIR__ . '/fixtures/annotations/Invalid/EmptyPhpFile.php', |
|
624 | - __DIR__ . '/fixtures/annotations/Invalid/NotAPhpFile', |
|
625 | - __DIR__ . '/fixtures/annotations/Type/RootQuery.php', |
|
622 | + __DIR__.'/fixtures/annotations/Invalid/HasNoClass.php', |
|
623 | + __DIR__.'/fixtures/annotations/Invalid/EmptyPhpFile.php', |
|
624 | + __DIR__.'/fixtures/annotations/Invalid/NotAPhpFile', |
|
625 | + __DIR__.'/fixtures/annotations/Type/RootQuery.php', |
|
626 | 626 | ]; |
627 | 627 | $this->parser('reset', $this->parserConfig); |
628 | 628 | |
629 | - foreach($files as $file) { |
|
629 | + foreach ($files as $file) { |
|
630 | 630 | $this->parser('preParse', new SplFileInfo($file), $this->containerBuilder, $this->parserConfig); |
631 | 631 | } |
632 | 632 | |
633 | 633 | $config = []; |
634 | - foreach($files as $file) { |
|
634 | + foreach ($files as $file) { |
|
635 | 635 | $config += self::cleanConfig($this->parser('parse', new SplFileInfo($file), $this->containerBuilder, $this->parserConfig)); |
636 | 636 | } |
637 | 637 |