From 7a4d755f8310b473221cd24594f99efcc27b6cf8 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Mon, 11 Mar 2024 20:36:12 +0300 Subject: [PATCH] update phpstan baseline --- phpstan-baseline-serializer.neon | 87 ++++++++++++++++++++++++++------ 1 file changed, 71 insertions(+), 16 deletions(-) diff --git a/phpstan-baseline-serializer.neon b/phpstan-baseline-serializer.neon index 46a7126..eaf39fe 100644 --- a/phpstan-baseline-serializer.neon +++ b/phpstan-baseline-serializer.neon @@ -60,11 +60,6 @@ parameters: count: 1 path: src/Component/Serializer/Parser/JMSCore/Type/Lexer.php - - - message: "#^Cannot access property \\$value on Doctrine\\\\Common\\\\Lexer\\\\Token\\\\|null\\.$#" - count: 2 - path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php - - message: "#^Method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:getConstant\\(\\) should return string but returns string\\|false\\.$#" count: 1 @@ -95,16 +90,6 @@ parameters: count: 1 path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php - - - message: "#^Parameter \\#1 \\$value of method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:getConstant\\(\\) expects int, int\\\\|int\\<4, 8\\>\\|int\\<11, max\\>\\|string\\|UnitEnum\\|null given\\.$#" - count: 1 - path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php - - - - message: "#^Parameter \\#1 \\$value of method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:getConstant\\(\\) expects int, int\\|string\\|UnitEnum\\|null given\\.$#" - count: 1 - path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php - - message: "#^Method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\ParserInterface\\:\\:parse\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -187,5 +172,75 @@ parameters: - message: "#^Parameter \\#4 \\$traversableClass of class Liip\\\\MetadataParser\\\\Metadata\\\\PropertyTypeIterable constructor expects class\\-string\\\\|null, string\\|null given\\.$#" - count: 2 + count: 1 + path: src/Component/Serializer/Parser/JMSTypeParser.php + + - + message: "#^Cannot access property \\$value on RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token\\|null\\.$#" + count: 2 + path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php + + - + message: "#^Parameter \\#1 \\$string of function strlen expects string, int\\|string given\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php + + - + message: "#^Parameter \\#1 \\$value of method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:getConstant\\(\\) expects int, int\\\\|int\\<4, 8\\>\\|int\\<11, max\\>\\|string\\|null given\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php + + - + message: "#^Parameter \\#1 \\$value of method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:getConstant\\(\\) expects int, int\\|string\\|null given\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php + + - + message: "#^Property RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Parser\\:\\:\\$token with generic class RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token does not specify its types\\: T, V$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Parser.php + + - + message: "#^Access to an undefined property object\\:\\:\\$position\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Access to an undefined property object\\:\\:\\$type\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Access to an undefined property object\\:\\:\\$value\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token\\:\\:fromArray\\(\\) has parameter \\$source with no value type specified in iterable type array\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token\\:\\:fromArray\\(\\) return type with generic class RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token does not specify its types\\: T, V$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Method RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token\\:\\:fromObject\\(\\) return type with generic class RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token does not specify its types\\: T, V$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Property RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSCore\\\\Type\\\\Token\\\\:\\:\\$type \\(\\(T of int\\|string\\)\\|null\\) does not accept int\\|string\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSCore/Type/Token.php + + - + message: "#^Cannot call method getParameters\\(\\) on ReflectionMethod\\|null\\.$#" + count: 1 + path: src/Component/Serializer/Parser/JMSTypeParser.php + + - + message: "#^Property RetailCrm\\\\Api\\\\Component\\\\Serializer\\\\Parser\\\\JMSTypeParser\\:\\:\\$useArrayDateFormat has no type specified\\.$#" + count: 1 path: src/Component/Serializer/Parser/JMSTypeParser.php