Merge pull request #12776 from martinstuecklschwaiger/patch-1

Fix @return value
This commit is contained in:
Mark Story 2018-11-29 15:39:15 -05:00 committed by GitHub
commit fea343d67c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2997,7 +2997,7 @@ class Model extends CakeObject implements CakeEventListener {
* *
* @param string $type Type of find operation (all / first / count / neighbors / list / threaded) * @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) * @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 * @link https://book.cakephp.org/2.0/en/models/retrieving-your-data.html
*/ */
public function find($type = 'first', $query = array()) { public function find($type = 'first', $query = array()) {