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
64
64
throw new InvalidArgumentException ('Only JsonApiPaginator instance or false allowed ' );
65
65
}
66
66
$ this ->_pagination ->totalCount = $ this ->getTotalCount ();
67
- } elseif ($ value instanceof JsonApiPaginator || $ value === false ) {
67
+ } elseif ($ value instanceof JsonApiPaginator) {
68
68
$ 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 ;
72
72
} else {
73
73
throw new InvalidArgumentException ('Only JsonApiPaginator instance, configuration array or false is allowed. ' );
74
74
}
You can’t perform that action at this time.
0 commit comments