Browse Source

Merge pull request #11959 from ypnos-web/patch-9

Fix API documentation of formatResults()
Mark Story 8 years ago
parent
commit
24b52a29d5
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/Datasource/QueryTrait.php

+ 2 - 3
src/Datasource/QueryTrait.php

@@ -17,7 +17,6 @@ namespace Cake\Datasource;
 use BadMethodCallException;
 use Cake\Collection\Iterator\MapReduce;
 use Cake\Datasource\Exception\RecordNotFoundException;
-use Cake\Datasource\ResultSetDecorator;
 
 /**
  * Contains the characteristics for an object that is attached to a repository and
@@ -380,8 +379,8 @@ trait QueryTrait
      * Registers a new formatter callback function that is to be executed when trying
      * to fetch the results from the database.
      *
-     * Formatting callbacks will get a first parameter, a `ResultSetDecorator`, that
-     * can be traversed and modified at will.
+     * Formatting callbacks will get a first parameter, an object implementing
+     * `\Cake\Collection\CollectionInterface`, that can be traversed and modified at will.
      *
      * Callbacks are required to return an iterator object, which will be used as
      * the return value for this query's result. Formatter functions are applied