From e90bcb5744cd6907273a8386aeee4ce93951efcf Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 20 Nov 2024 14:27:31 +0100 Subject: [PATCH] [PHPStan] Removed resolved issues from the baseline --- phpstan-baseline.neon | 80 ------------------------------------------- 1 file changed, 80 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 9fed8314..361d62b1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -25,46 +25,16 @@ parameters: count: 1 path: src/bundle/CorsOptions/RestProvider.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Compiler\\\\FieldTypeProcessorPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/FieldTypeProcessorPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Compiler\\\\InputHandlerPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/InputHandlerPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Compiler\\\\InputParserPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/InputParserPass.php - - message: "#^Argument of an invalid type array\\|bool\\|float\\|int\\|string\\|null supplied for foreach, only iterables are supported\\.$#" count: 1 path: src/bundle/DependencyInjection/Compiler/OutputVisitorPass.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Compiler\\\\OutputVisitorPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/OutputVisitorPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Compiler\\\\ValueObjectVisitorPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/ValueObjectVisitorPass.php - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\Configuration\\:\\:addRestRootResourcesSection\\(\\) has parameter \\$rootNode with no type specified\\.$#" count: 1 path: src/bundle/DependencyInjection/Configuration.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\IbexaRestExtension\\:\\:prepend\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/IbexaRestExtension.php - - message: "#^Method Ibexa\\\\Bundle\\\\Rest\\\\DependencyInjection\\\\IbexaRestExtension\\:\\:prependRouterConfiguration\\(\\) has no return type specified\\.$#" count: 1 @@ -420,16 +390,6 @@ parameters: count: 1 path: src/contracts/Output/Visitor.php - - - message: "#^Offset 0 does not exist on array\\\\|string\\|null\\.$#" - count: 1 - path: src/contracts/Output/Visitor.php - - - - message: "#^Parameter \\#1 \\$key of method Symfony\\\\Component\\\\HttpFoundation\\\\ResponseHeaderBag\\:\\:remove\\(\\) expects string, int\\|string given\\.$#" - count: 1 - path: src/contracts/Output/Visitor.php - - message: "#^Property Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Visitor\\:\\:\\$statusCode \\(int\\) does not accept null\\.$#" count: 1 @@ -920,21 +880,6 @@ parameters: count: 1 path: src/lib/Output/ValueObjectVisitor/ContentObjectStates.php - - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\:\\:setInputDispatcher\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Server/Controller.php - - - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\:\\:setRepository\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Server/Controller.php - - - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\:\\:setRouter\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Server/Controller.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\\\BinaryContent\\:\\:getImageVariation\\(\\) should return Ibexa\\\\Contracts\\\\Core\\\\Variation\\\\Values\\\\Variation but returns Ibexa\\\\Rest\\\\Server\\\\Values\\\\CachedValue\\.$#" count: 1 @@ -965,21 +910,6 @@ parameters: count: 1 path: src/lib/Server/Controller/Bookmark.php - - - message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\DependencyInjection\\\\ContainerInterface\\|null\\.$#" - count: 2 - path: src/lib/Server/Controller/Content.php - - - - message: "#^Cannot call method getCurrentRequest\\(\\) on object\\|null\\.$#" - count: 1 - path: src/lib/Server/Controller/Content.php - - - - message: "#^Cannot call method handle\\(\\) on object\\|null\\.$#" - count: 1 - path: src/lib/Server/Controller/Content.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\\\Content\\:\\:loadContent\\(\\) should return Ibexa\\\\Rest\\\\Server\\\\Values\\\\RestContent but returns Ibexa\\\\Rest\\\\Server\\\\Values\\\\CachedValue\\.$#" count: 1 @@ -1000,21 +930,11 @@ parameters: count: 1 path: src/lib/Server/Controller/Content.php - - - message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocation\\(\\) expects int, int\\|null given\\.$#" - count: 1 - path: src/lib/Server/Controller/Content.php - - message: "#^Parameter \\#1 \\$parentLocationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:newLocationCreateStruct\\(\\) expects int, string given\\.$#" count: 1 path: src/lib/Server/Controller/Content.php - - - message: "#^Parameter \\#1 \\$versions of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\VersionList constructor expects array\\, iterable\\ given\\.$#" - count: 1 - path: src/lib/Server/Controller/Content.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\\\ContentType\\:\\:addContentTypeDraftFieldDefinition\\(\\) has parameter \\$contentTypeId with no type specified\\.$#" count: 1