Browse Source

Added missing mixin for Paginator.

mscherer 7 years ago
parent
commit
26fb5bced7

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

@@ -30,6 +30,7 @@ use InvalidArgumentException;
  * You configure pagination when calling paginate(). See that method for more details.
  *
  * @link https://book.cakephp.org/3.0/en/controllers/components/pagination.html
+ * @mixin \Cake\Datasource\Paginator
  */
 class PaginatorComponent extends Component
 {

+ 5 - 0
tests/TestCase/Controller/Component/PaginatorComponentTest.php

@@ -69,6 +69,11 @@ class PaginatorComponentTest extends TestCase
     public $autoFixtures = false;
 
     /**
+     * @var \Cake\Controller\Component\PaginatorComponent
+     */
+    protected $Paginator;
+
+    /**
      * setup
      *
      * @return void