Skip to content

Commit d9ddb64

Browse files
authored
Merge pull request #1050 from sparklink-pro/phpstan
Update phpstan
2 parents ab1b11c + 35bf91c commit d9ddb64

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testDefinesEnumTypeWithDeprecatedValue(): void
2323
/** @var EnumType $enumTypeWithDeprecatedValue */
2424
$enumTypeWithDeprecatedValue = $this->getType('EnumWithDeprecatedValue');
2525
$value = $enumTypeWithDeprecatedValue->getValues()[0];
26-
$this->assertSame([
26+
$this->assertSame([ // @phpstan-ignore-line
2727
'deprecationReason' => 'Just because',
2828
'value' => 'foo',
2929
'name' => 'foo',

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)