File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ public function setPagination($value):void
6464 throw new InvalidArgumentException ('Only JsonApiPaginator instance or false allowed ' );
6565 }
6666 $ this ->_pagination ->totalCount = $ this ->getTotalCount ();
67- } elseif ($ value instanceof JsonApiPaginator || $ value === false ) {
67+ } elseif ($ value instanceof JsonApiPaginator) {
6868 $ this ->_pagination = $ value ;
69- if ( $ value instanceof JsonApiPaginator) {
70- $ this -> _pagination -> totalCount = $ this -> getTotalCount ();
71- }
69+ $ this -> _pagination -> totalCount = $ this -> getTotalCount ();
70+ } elseif ( $ value === false ) {
71+ $ this -> _pagination = false ;
7272 } else {
7373 throw new InvalidArgumentException ('Only JsonApiPaginator instance, configuration array or false is allowed. ' );
7474 }
You can’t perform that action at this time.
0 commit comments