From fe66f9c0889ec1ac51fdb8b4b1f1de49d1f79146 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Mon, 2 Dec 2024 07:56:22 +0100 Subject: [PATCH] chore: phpstan baseline cleanup --- phpstan-baseline.neon | 245 ------------------------------------------ 1 file changed, 245 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6bcbec1..66cad0d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,266 +10,31 @@ parameters: count: 1 path: ajax/delete.php - - - message: "#^Call to static method getInstance\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\Handler\\.$#" - count: 1 - path: ajax/frontend/redeem.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\OrderInProcess not found\\.$#" - count: 1 - path: ajax/frontend/redeem.php - - - - message: "#^Call to static method getInstance\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\Handler\\.$#" - count: 1 - path: ajax/frontend/removeCoupons.php - - message: "#^Call to an undefined method QUI\\\\ERP\\\\Products\\\\Interfaces\\\\PriceFactorInterface\\:\\:setVat\\(\\)\\.$#" count: 1 path: src/QUI/ERP/Coupons/CouponCode.php - - - message: "#^Call to method addArticle\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method addFrontendMessage\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInterface\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method addPriceFactors\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getArticles\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getCustomer\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getDataEntry\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getPrefixedNumber\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getPrefixedNumber\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\Order\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method update\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\Order not found\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - message: "#^Method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:getDiscounts\\(\\) should return array\\<QUI\\\\ERP\\\\Discount\\\\Discount\\> but returns array\\<int\\<0, max\\>, QUI\\\\CRUD\\\\Child\\>\\.$#" count: 1 path: src/QUI/ERP/Coupons/CouponCode.php - - - message: "#^Parameter \\#2 \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:isRedeemable\\(\\) expects QUI\\\\ERP\\\\Order\\\\OrderInterface\\|null, QUI\\\\ERP\\\\Order\\\\OrderInProcess given\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:addToOrder\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:checkOrderRedemption\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\OrderInterface\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:isRedeemable\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\OrderInterface\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:redeem\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/CouponCode.php - - - - message: "#^Call to method getAttribute\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getAttribute\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getCurrentStep\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getCustomer\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 3 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getDataEntry\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getDataEntry\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getOrder\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\Basket\\\\Basket\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method getOrder\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method isSuccessful\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method setData\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to method update\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\OrderInProcess\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Call to static method getInstance\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\Handler\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\Basket\\\\Basket not found\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\Basket\\\\BasketOrder not found\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\Controls\\\\OrderProcess\\\\Basket not found\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Class QUI\\\\ERP\\\\Order\\\\OrderInProcess not found\\.$#" - count: 3 - path: src/QUI/ERP/Coupons/Events.php - - message: "#^Offset 'standard' on array\\{title\\: array\\{de\\: 'Gutschein \\- Versand', en\\: 'Coupon delivery'\\}, type\\: 'ProductAttributeList', public\\: true, standard\\: false, requiredField\\: true, options\\: array\\{entries\\: array\\{array\\{title\\: array\\{de\\: 'per E \\- Mail', en\\: 'via email'\\}, sum\\: 0, type\\: 2, selected\\: true, userinput\\: false\\}, array\\{title\\: array\\{de\\: 'per Post', en\\: 'via mail'\\}, sum\\: 0, type\\: 2, selected\\: false, userinput\\: false\\}\\}\\}\\}\\|array\\{title\\: array\\{de\\: 'Gutschein Wert', en\\: 'Coupon amount'\\}, type\\: 'FloatType', public\\: false, standard\\: false, requiredField\\: true\\}\\|array\\{title\\: array\\{de\\: 'Gutschein\\-Code als…', en\\: 'Provide coupon code…'\\}, description\\: array\\{de\\: 'Der Gutschein wird…', en\\: 'The coupon is also…'\\}, type\\: 'BoolType', public\\: false, standard\\: false, requiredField\\: false\\}\\|array\\{title\\: array\\{de\\: 'Gutschein\\-Code ist…', en\\: 'Coupon code is…'\\}, description\\: array\\{de\\: 'Übertragbare…', en\\: 'Transferable…'\\}, type\\: 'BoolType', public\\: false, standard\\: false, requiredField\\: false\\}\\|array\\{title\\: array\\{de\\: 'Gutschein\\-Code per…', en\\: 'Send coupon code…'\\}, description\\: array\\{de\\: 'Der Gutschein\\-Code…', en\\: 'The coupon code is…'\\}, type\\: 'BoolType', public\\: false, standard\\: false, requiredField\\: false\\}\\|array\\{title\\: array\\{de\\: 'Gutschein\\-Code…', en\\: 'Coupon code…'\\}, type\\: 'IntType', public\\: false, standard\\: false, requiredField\\: true\\}\\|array\\{title\\: array\\{de\\: 'Gutschein…', en\\: 'Coupon description'\\}, description\\: array\\{de\\: 'Diese Beschreibung…', en\\: 'This description…'\\}, type\\: 'InputMultiLang', public\\: false, standard\\: false, requiredField\\: false\\}\\|array\\{title\\: array\\{de\\: 'Ist Einzweck…', en\\: 'Is single purpose…'\\}, description\\: array\\{de\\: 'Einzweck\\-Gutscheine…', en\\: 'Single\\-purpose…'\\}, type\\: 'BoolType', public\\: false, standard\\: false, requiredField\\: false\\}\\|array\\{title\\: array\\{de\\: 'Kunde darf…', en\\: 'Customer can choose…'\\}, description\\: array\\{de\\: 'Ist diese Funktion…', en\\: 'if this option is…'\\}, type\\: 'BoolType', public\\: false, standard\\: false, requiredField\\: false\\} in empty\\(\\) always exists and is always falsy\\.$#" count: 1 path: src/QUI/ERP/Coupons/Events.php - - - message: "#^PHPDoc tag @throws with type QUI\\\\ERP\\\\Order\\\\Exception\\|QUI\\\\Exception is not subtype of Throwable$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\#1 \\$Order of method QUI\\\\ERP\\\\Coupons\\\\CouponCode\\:\\:checkOrderRedemption\\(\\) expects QUI\\\\ERP\\\\Order\\\\OrderInterface\\|null, QUI\\\\ERP\\\\Order\\\\OrderInProcess given\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\$Basket of method QUI\\\\ERP\\\\Coupons\\\\Events\\:\\:onQuiqqerOrderBasketRemovePos\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\Basket\\\\Basket\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\Events\\:\\:onQuiqqerOrderBasketToOrder\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\Events\\:\\:onQuiqqerOrderCreated\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\Events\\:\\:onQuiqqerOrderSuccessful\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - - - message: "#^Parameter \\$OrderProcess of method QUI\\\\ERP\\\\Coupons\\\\Events\\:\\:onOrderProcess\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\OrderProcess\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Events.php - - message: "#^Parameter \\#1 \\$id of static method QUI\\\\ERP\\\\Coupons\\\\Handler\\:\\:getCouponCode\\(\\) expects int, string\\|false given\\.$#" count: 1 path: src/QUI/ERP/Coupons/Handler.php - - - message: "#^Call to method addHistory\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Products/Handler.php - - message: "#^Call to method createPDF\\(\\) on an unknown class QUI\\\\HtmlToPdf\\\\Document\\.$#" count: 1 path: src/QUI/ERP/Coupons/Products/Handler.php - - - message: "#^Call to method getArticles\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Call to method getCurrency\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Call to method getCustomer\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Call to method getPrefixedNumber\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Call to method getUUID\\(\\) on an unknown class QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 1 - path: src/QUI/ERP/Coupons/Products/Handler.php - - message: "#^Call to method setAttribute\\(\\) on an unknown class QUI\\\\HtmlToPdf\\\\Document\\.$#" count: 7 @@ -304,13 +69,3 @@ parameters: message: "#^Parameter \\#1 \\$key of method QUI\\\\ERP\\\\Accounting\\\\Article\\:\\:getCustomField\\(\\) expects string, int given\\.$#" count: 1 path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\Products\\\\Handler\\:\\:createCouponCodeFromProduct\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Products/Handler.php - - - - message: "#^Parameter \\$Order of method QUI\\\\ERP\\\\Coupons\\\\Products\\\\Handler\\:\\:createCouponCodesFromOrder\\(\\) has invalid type QUI\\\\ERP\\\\Order\\\\AbstractOrder\\.$#" - count: 2 - path: src/QUI/ERP/Coupons/Products/Handler.php -- GitLab