Browse Source

fix return type

It doesn't return an array. It returns the result object from `$query->all()`
Thinking Media 10 years ago
parent
commit
ff69df0a02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Controller/Component/PaginatorComponent.php

+ 1 - 1
src/Controller/Component/PaginatorComponent.php

@@ -143,7 +143,7 @@ class PaginatorComponent extends Component
      *
      * @param \Cake\Datasource\RepositoryInterface|\Cake\Datasource\QueryInterface $object The table or query to paginate.
      * @param array $settings The settings/configuration used for pagination.
-     * @return array Query results
+     * @return \Cake\Datasource\ResultSetInterface Query results
      * @throws \Cake\Network\Exception\NotFoundException
      */
     public function paginate($object, array $settings = [])