Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
It doesn't return an array. It returns the result object from `$query->all()`
  • Loading branch information
thinkingmedia committed Apr 7, 2016
1 parent 7beb1b4 commit ff69df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/PaginatorComponent.php
Expand Up @@ -143,7 +143,7 @@ public function implementedEvents()
*
* @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 = [])
Expand Down

0 comments on commit ff69df0

Please sign in to comment.