From 99bcbf3a0cbf71b1fff7dffc21c7d4c9768342c6 Mon Sep 17 00:00:00 2001 From: Alan Poulain Date: Fri, 30 Oct 2020 22:15:39 +0100 Subject: [PATCH] fix: add false positives to PHPStan --- phpstan.neon.dist | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 69217f5e5bd..e12c09311c7 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -104,6 +104,12 @@ parameters: - message: '#Cannot assign new offset to string\.#' path: src/JsonSchema/SchemaFactory.php + - + message: '#Instanceof between bool\|float\|int\|null and ArrayObject will always evaluate to false\.#' + path: src/JsonApi/Serializer/ItemNormalizer.php + - + message: '#Instanceof between bool\|float\|int\|null and ArrayObject will always evaluate to false\.#' + path: src/Serializer/AbstractItemNormalizer.php # Expected, due to optional interfaces - '#Method ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Extension\\QueryCollectionExtensionInterface::applyToCollection\(\) invoked with 5 parameters, 3-4 required\.#'