From c2f2b496c8ec8df1f867b535e90fb9f577979462 Mon Sep 17 00:00:00 2001 From: mcop1 <89011527+mcop1@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:29:39 +0200 Subject: [PATCH] [Task] Update phpstan baseline (#196) * Baseline update * Formatting * Escaping * Rollback * Rollback * Auto generated baseline file * Added reportUnmatched for the new error * Added ignored error * Removed ignored error (cherry picked from commit 869c0e74fa6778eb64ee63dd69c79fb0ca15c150) --- phpstan-baseline.neon | 62 +++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 37 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index bca0efdd..f0c63a62 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,44 +1,32 @@ parameters: ignoreErrors: - - - message: "#^Parameter \\#1 \\$product of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\OfferTool\\\\AbstractOfferItem\\:\\:setProduct\\(\\)\\ expects Pimcore\\\\Model\\\\Element\\\\AbstractElement\\|null, Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\CheckoutableInterface\\ given\\.$#" - reportUnmatched: false - count: 2 - path: src/OfferTool/DefaultService.php + - + message: "#^Method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\OfferTool\\\\AbstractOfferToolProduct\\:\\:getById\\(\\) should return static\\(Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\OfferTool\\\\AbstractOfferToolProduct\\)\\|null but returns Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\OfferTool\\\\AbstractOfferToolProduct\\.$#" + reportUnmatched: false + count: 1 + path: src/OfferTool/AbstractOfferToolProduct.php - - - message: "#^Parameter \\#1 \\$product of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\AbstractOrderItem\\:\\:setProduct\\(\\)\\ expects Pimcore\\\\Model\\\\Element\\\\AbstractElement\\|null, Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\CheckoutableInterface\\ given\\.$#" - reportUnmatched: false - count: 1 - path: src/OrderManager/V7/OrderManager.php + - + message: "#^Parameter \\#1 \\$product of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\OfferTool\\\\AbstractOfferItem\\:\\:setProduct\\(\\) expects Pimcore\\\\Model\\\\Element\\\\AbstractElement\\|null, Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\CheckoutableInterface given\\.$#" + count: 2 + path: src/OfferTool/DefaultService.php - - - message: "#^Parameter \\#1 \\$products of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogProduct\\:\\:setProducts\\(\\)\\ expects array\\, array\\, Pimcore\\\\Model\\\\DataObject\\\\Concrete\\> given\\.$#" - reportUnmatched: false - count: 1 - path: src/PricingManager/Condition/CatalogProduct.php + - + message: "#^Parameter \\#1 \\$product of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\AbstractOrderItem\\:\\:setProduct\\(\\) expects Pimcore\\\\Model\\\\Element\\\\AbstractElement\\|null, Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\Model\\\\CheckoutableInterface given\\.$#" + count: 1 + path: src/OrderManager/V7/OrderManager.php - - - message: "#^Parameter \\#1 \\$categories of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogCategory\\:\\:setCategories\\(\\)\\ expects array\\, array\\, Pimcore\\\\Model\\\\DataObject\\\\Concrete\\> given\\.$#" - reportUnmatched: false - count: 1 - path: src/PricingManager/Condition/CatalogCategory.php + - + message: "#^Parameter \\#1 \\$categories of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogCategory\\:\\:setCategories\\(\\) expects array\\, array\\, Pimcore\\\\Model\\\\DataObject\\\\Concrete\\> given\\.$#" + count: 1 + path: src/PricingManager/Condition/CatalogCategory.php - - - message: "#^Parameter \\#1 \\$categories of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogCategory\\:\\:setCategories\\(\\)\\ expects array\\, array\\ given\\.$#" - reportUnmatched: false - count: 1 - path: src/PricingManager/Condition/CatalogCategory.php - - - - message: "#^Parameter \\#1 \\$products of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogProduct\\:\\:setProducts\\(\\)\\ expects array\\, array\\ given\\.$#" - reportUnmatched: false - count: 1 - path: src/PricingManager/Condition/CatalogProduct.php - - - - message: "#^Parameter \\#3 \\$mode of function round expects 1|2|3|4, int given\\.$#" - reportUnmatched: false - count: 1 - path: src/Type/Decimal.php + - + message: "#^Parameter \\#1 \\$products of method Pimcore\\\\Bundle\\\\EcommerceFrameworkBundle\\\\PricingManager\\\\Condition\\\\CatalogProduct\\:\\:setProducts\\(\\) expects array\\, array\\, Pimcore\\\\Model\\\\DataObject\\\\Concrete\\> given\\.$#" + count: 1 + path: src/PricingManager/Condition/CatalogProduct.php + - + message: "#^Parameter \\#3 \\$mode of function round expects 1\\|2\\|3\\|4, int given\\.$#" + count: 1 + path: src/Type/Decimal.php \ No newline at end of file