From d36f8335dfa048f01c3b2cd0d1349d93781a1105 Mon Sep 17 00:00:00 2001 From: "Angel S. Moreno" Date: Sat, 9 Sep 2017 21:06:45 -0400 Subject: [PATCH 1/2] Fixed Incorrect DocBlock for Collection::count() --- src/Phalcon/mvc/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Phalcon/mvc/Collection.php b/src/Phalcon/mvc/Collection.php index a50adfd4..f2a4df71 100644 --- a/src/Phalcon/mvc/Collection.php +++ b/src/Phalcon/mvc/Collection.php @@ -614,7 +614,7 @@ public static function count(array $parameters = null) {} * Perform an aggregation using the Mongo aggregation framework * * @param array $parameters - * @return array + * @return int */ public static function aggregate(array $parameters = null) {} From cd310729db4a00a0eaff0bc25c1d78e4f6022552 Mon Sep 17 00:00:00 2001 From: "Angel S. Moreno" Date: Sat, 9 Sep 2017 21:36:25 -0400 Subject: [PATCH 2/2] Fixed wrong line edited --- src/Phalcon/mvc/Collection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Phalcon/mvc/Collection.php b/src/Phalcon/mvc/Collection.php index f2a4df71..a37ab97f 100644 --- a/src/Phalcon/mvc/Collection.php +++ b/src/Phalcon/mvc/Collection.php @@ -606,7 +606,7 @@ public static function find(array $parameters = null) {} * * * @param array $parameters - * @return array + * @return int */ public static function count(array $parameters = null) {} @@ -614,7 +614,7 @@ public static function count(array $parameters = null) {} * Perform an aggregation using the Mongo aggregation framework * * @param array $parameters - * @return int + * @return array */ public static function aggregate(array $parameters = null) {}