From a9e20c39be96e9759fc96f9fa6d26f706ab0f574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BCcklschwaiger?= Date: Thu, 29 Nov 2018 20:37:03 +0100 Subject: [PATCH] Fix @return value --- lib/Cake/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 1957baf83..a854e644d 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2997,7 +2997,7 @@ class Model extends CakeObject implements CakeEventListener { * * @param string $type Type of find operation (all / first / count / neighbors / list / threaded) * @param array $query Option fields (conditions / fields / joins / limit / offset / order / page / group / callbacks) - * @return array|null Array of records, or Null on failure. + * @return array|int|null Array of records, int if the type is count, or Null on failure. * @link https://book.cakephp.org/2.0/en/models/retrieving-your-data.html */ public function find($type = 'first', $query = array()) {