From 237277ee134f5b655642439d2002c1b96af81d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Dav=C3=ADdek?= Date: Thu, 17 Jun 2021 18:20:40 +0200 Subject: [PATCH] Fixed phpdoc Fixed phpdoc of Mage_Core_Model_Resource_Db_Collection_Abstract::addExpressionFieldToSelect --- .../core/Mage/Core/Model/Resource/Db/Collection/Abstract.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php index 970262f4091..8a0f9f92ca5 100644 --- a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php +++ b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php @@ -333,13 +333,13 @@ public function addFieldToSelect($field, $alias = null) /** * Add attribute expression (SUM, COUNT, etc) - * Example: ('sub_total', 'SUM({{attribute}})', 'revenue') + * Example: ('sub_total', 'SUM({{attribute}})', array('attribute' => 'revenue')) * Example: ('sub_total', 'SUM({{revenue}})', 'revenue') * For some functions like SUM use groupByAttribute. * * @param string $alias * @param string $expression - * @param array $fields + * @param array|string $fields * @return $this */ public function addExpressionFieldToSelect($alias, $expression, $fields)