diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 90264ca2..17b626ff 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -480,21 +480,11 @@ parameters: count: 1 path: src/contracts/Output/Generator.php - - - message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) has no return type specified\\.$#" - count: 1 - path: src/contracts/Output/Generator.php - - message: "#^Property Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:\\$stack type has no value type specified in iterable type array\\.$#" count: 1 path: src/contracts/Output/Generator.php - - - message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) invoked with 3 parameters, 2 required\\.$#" - count: 1 - path: src/contracts/Output/ValueObjectVisitor.php - - message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\ValueObjectVisitor\\:\\:setRequestParser\\(\\) has no return type specified\\.$#" count: 1 @@ -905,16 +895,6 @@ parameters: count: 1 path: src/lib/Output/Generator/Json.php - - - message: "#^Method Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Json\\:\\:startValueElement\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Output/Generator/Json.php - - - - message: "#^Method Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Json\\:\\:startValueElement\\(\\) has parameter \\$attributes with no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Output/Generator/Json.php - - message: "#^Parameter \\#1 \\$parent of method Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Json\\\\FieldTypeHashGenerator\\:\\:generateHashValue\\(\\) expects Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Json\\\\ArrayObject\\|Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Json\\\\JsonObject, array given\\.$#" count: 1 @@ -1021,12 +1001,7 @@ parameters: path: src/lib/Output/Generator/Xml.php - - message: "#^Method Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Xml\\:\\:startValueElement\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Output/Generator/Xml.php - - - - message: "#^Method Ibexa\\\\Rest\\\\Output\\\\Generator\\\\Xml\\:\\:startValueElement\\(\\) has parameter \\$attributes with no value type specified in iterable type array\\.$#" + message: "#^Parameter \\#1 \\$content of method XMLWriter\\:\\:text\\(\\) expects string, bool\\|float\\|int\\|string\\|null given\\.$#" count: 1 path: src/lib/Output/Generator/Xml.php @@ -2935,11 +2910,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/BookmarkList.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/BookmarkList.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\CachedValue\\:\\:getParameter\\(\\) has no return type specified\\.$#" count: 1 @@ -3310,11 +3280,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/ImageVariation.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int\\\\|int\\<1, max\\> given\\.$#" - count: 3 - path: src/lib/Server/Output/ValueObjectVisitor/ImageVariation.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\Location\\:\\:visit\\(\\) has no return type specified\\.$#" count: 1 @@ -3325,11 +3290,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/Location.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 4 - path: src/lib/Server/Output/ValueObjectVisitor/Location.php - - message: "#^Parameter \\#5 \\$relations of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\RestContent constructor expects array\\\\|null, iterable\\ given\\.$#" count: 1 @@ -3490,21 +3450,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/RestExecutedView.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, float given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/RestExecutedView.php - - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/RestExecutedView.php - - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int\\|null given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/RestExecutedView.php - - message: "#^Parameter \\#5 \\$relations of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\RestContent constructor expects array\\\\|null, iterable\\ given\\.$#" count: 1 @@ -3515,21 +3460,11 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/RestFieldDefinition.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/RestFieldDefinition.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\RestLocation\\:\\:visit\\(\\) has no return type specified\\.$#" count: 1 path: src/lib/Server/Output/ValueObjectVisitor/RestLocation.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 4 - path: src/lib/Server/Output/ValueObjectVisitor/RestLocation.php - - message: "#^Access to an undefined property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectState\\:\\:\\$defaultLanguageCode\\.$#" count: 1 @@ -3540,11 +3475,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/RestObjectState.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/RestObjectState.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\RestRelation\\:\\:visit\\(\\) has no return type specified\\.$#" count: 1 @@ -3555,11 +3485,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/RestTrashItem.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 4 - path: src/lib/Server/Output/ValueObjectVisitor/RestTrashItem.php - - message: "#^Access to an undefined property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\:\\:\\$email\\.$#" count: 1 @@ -3815,16 +3740,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/Version.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int\\|null given\\.$#" - count: 2 - path: src/lib/Server/Output/ValueObjectVisitor/Version.php - - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/Version.php - - message: "#^Access to an undefined property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\:\\:\\$names\\.$#" count: 1 @@ -3840,11 +3755,6 @@ parameters: count: 1 path: src/lib/Server/Output/ValueObjectVisitor/VersionInfo.php - - - message: "#^Parameter \\#2 \\$value of method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) expects string, int given\\.$#" - count: 1 - path: src/lib/Server/Output/ValueObjectVisitor/VersionInfo.php - - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\VersionList\\:\\:visit\\(\\) has no return type specified\\.$#" count: 1 @@ -7595,11 +7505,6 @@ parameters: count: 1 path: tests/lib/Output/Generator/FieldTypeHashGeneratorBaseTest.php - - - message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) invoked with 3 parameters, 2 required\\.$#" - count: 1 - path: tests/lib/Output/Generator/JsonTest.php - - message: "#^Method Ibexa\\\\Tests\\\\Rest\\\\Output\\\\Generator\\\\JsonTest\\:\\:testGeneratorAttribute\\(\\) has no return type specified\\.$#" count: 1 @@ -7690,11 +7595,6 @@ parameters: count: 1 path: tests/lib/Output/Generator/JsonTest.php - - - message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Output\\\\Generator\\:\\:startValueElement\\(\\) invoked with 3 parameters, 2 required\\.$#" - count: 2 - path: tests/lib/Output/Generator/XmlTest.php - - message: "#^Method Ibexa\\\\Tests\\\\Rest\\\\Output\\\\Generator\\\\XmlTest\\:\\:testGeneratorAttribute\\(\\) has no return type specified\\.$#" count: 1