Skip to content

Commit ab7df6c

Browse files
fix: PHPStan
1 parent 2ce4d6c commit ab7df6c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ parameters:
7373
-
7474
message: "#Call to function method_exists\\(\\) with ApiPlatform\\\\JsonApi\\\\Serializer\\\\ItemNormalizer and 'setCircularReferenc…' will always evaluate to false\\.#"
7575
path: tests/JsonApi/Serializer/ItemNormalizerTest.php
76-
# TODO: remove in v3.0
7776
-
7877
message: "#Dead catch - JsonException is never thrown in the try block.#"
7978
path: src/Symfony/Bundle/Test/Response.php
@@ -91,9 +90,6 @@ parameters:
9190
message: '#Call to an undefined method Symfony\\Component\\PropertyInfo\\Type::getCollectionKeyType\(\)#'
9291
path: src
9392
# Skipped tests, we do this on purpose
94-
-
95-
message: "#^Unreachable statement - code above always terminates.$#"
96-
path: tests
9793
-
9894
message: "#Access to an undefined static property static\\([^)]+\\)::\\$container.$#"
9995
path: tests

src/GraphQl/Type/TypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function getResourceType(Type $type, bool $input, Operation $rootOperati
140140
}
141141

142142
$propertyMetadata = null;
143-
if ($property && $this->propertyMetadataFactory) {
143+
if ($property) {
144144
$context = [
145145
'normalization_groups' => $rootOperation->getNormalizationContext()['groups'] ?? null,
146146
'denormalization_groups' => $rootOperation->getDenormalizationContext()['groups'] ?? null,

0 commit comments

Comments
 (0)