Skip to content

Commit cac5220

Browse files
committed
chore(phpstan): ignore false-positive
1 parent 5c1ff96 commit cac5220

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elasticsearch/Serializer/DocumentNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(ResourceMetadataCollectionFactoryInterface $resource
4747
*/
4848
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
4949
{
50-
return self::FORMAT === $format && parent::supportsDenormalization($data, $type, $format, $context);
50+
return self::FORMAT === $format && parent::supportsDenormalization($data, $type, $format, $context); // @phpstan-ignore-line symfony bc-layer
5151
}
5252

5353
/**

src/Elasticsearch/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con
7878
throw new LogicException(sprintf('The decorated normalizer must be an instance of "%s".', DenormalizerInterface::class));
7979
}
8080

81-
return DocumentNormalizer::FORMAT !== $format && $this->decorated->supportsDenormalization($data, $type, $format, $context);
81+
return DocumentNormalizer::FORMAT !== $format && $this->decorated->supportsDenormalization($data, $type, $format, $context); // @phpstan-ignore-line symfony bc-layer
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)