Skip to content

Commit 277607a

Browse files
committed
Update phpstan
1 parent ab1b11c commit 277607a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"doctrine/orm": "^2.5",
5858
"monolog/monolog": "^1.26.1",
5959
"phpstan/extension-installer": "^1.0",
60-
"phpstan/phpstan": "1.6.2",
60+
"phpstan/phpstan": "1.8.4",
6161
"phpstan/phpstan-phpunit": "^1.0",
6262
"phpstan/phpstan-symfony": "^1.0",
6363
"phpunit/phpunit": "^9.5.10",

src/DependencyInjection/Compiler/ConfigParserPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Overblog\GraphQLBundle\Config\Parser\AnnotationParser;
99
use Overblog\GraphQLBundle\Config\Parser\AttributeParser;
1010
use Overblog\GraphQLBundle\Config\Parser\GraphQLParser;
11+
use Overblog\GraphQLBundle\Config\Parser\ParserInterface;
1112
use Overblog\GraphQLBundle\Config\Parser\PreParserInterface;
1213
use Overblog\GraphQLBundle\Config\Parser\YamlParser;
1314
use Overblog\GraphQLBundle\DependencyInjection\TypesConfiguration;
@@ -46,7 +47,7 @@ final class ConfigParserPass implements CompilerPassInterface
4647
];
4748

4849
/**
49-
* @var array<string, class-string<PreParserInterface>>
50+
* @var array<string, class-string<ParserInterface>>
5051
*/
5152
public const PARSERS = [
5253
'yaml' => YamlParser::class,

src/Resolver/ResolverMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function covered(?string $typeName = null)
7777
if (null === $typeName) {
7878
$resolvers = $loadedMap;
7979
} elseif (isset($loadedMap[$typeName])) { // @phpstan-ignore-line
80-
$resolvers = $loadedMap[$typeName];
80+
$resolvers = $loadedMap[$typeName]; // @phpstan-ignore-line
8181
}
8282

8383
foreach ($resolvers as $key => $value) {

tests/Functional/Type/DefinitionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function testDefinesEnumTypeWithDeprecatedValue(): void
2424
$enumTypeWithDeprecatedValue = $this->getType('EnumWithDeprecatedValue');
2525
$value = $enumTypeWithDeprecatedValue->getValues()[0];
2626
$this->assertSame([
27-
'deprecationReason' => 'Just because',
28-
'value' => 'foo',
2927
'name' => 'foo',
28+
'value' => 'foo',
29+
'deprecationReason' => 'Just because',
3030
], $value->config);
3131
$this->assertTrue($value->isDeprecated());
3232
}

tests/Relay/Connection/AbstractConnectionBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function getExpectedConnection(array $wantedEdges, bool $hasPreviousPa
3636
$expectedEdges,
3737
new PageInfo(
3838
isset($expectedEdges[0]) ? $expectedEdges[0]->getCursor() : null,
39-
$endEdge ? $endEdge->getCursor() : null,
39+
$endEdge ? $endEdge->getCursor() : null, // @phpstan-ignore-line
4040
$hasPreviousPage,
4141
$hasNextPage
4242
)

0 commit comments

Comments
 (0)