From 1dbd71f0dc0c83a5cecc44043383a311f27e89d2 Mon Sep 17 00:00:00 2001 From: Caprico <2081806+Caprico85@users.noreply.github.com> Date: Fri, 15 Jul 2022 16:48:53 +0200 Subject: [PATCH] Fix phpdoc for saveAttribute() --- .github/phpstan-baseline.neon | 5 ----- app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/phpstan-baseline.neon b/.github/phpstan-baseline.neon index 7557d4c7334..7c65d44ed5c 100644 --- a/.github/phpstan-baseline.neon +++ b/.github/phpstan-baseline.neon @@ -7010,11 +7010,6 @@ parameters: count: 1 path: ../app/code/core/Mage/Sales/Model/Recurring/Profile.php - - - message: "#^Variable \\$attribute in empty\\(\\) always exists and is not falsy\\.$#" - count: 1 - path: ../app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php - - message: "#^Cannot call method updateOnRelatedRecordChanged\\(\\) on Mage_Core_Model_Resource_Db_Collection_Abstract\\|false\\.$#" count: 1 diff --git a/app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php b/app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php index a900475dd05..aa12fdf504c 100644 --- a/app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php +++ b/app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php @@ -323,7 +323,7 @@ protected function _afterSaveAttribute(Mage_Core_Model_Abstract $object, $attrib * Perform actions after object save * * @param Mage_Core_Model_Abstract $object - * @param string $attribute + * @param string|string[]|Mage_Eav_Model_Entity_Attribute_Abstract $attribute * @return $this */ public function saveAttribute(Mage_Core_Model_Abstract $object, $attribute)