Skip to content

Commit 3be10f0

Browse files
committed
Small bug fixing the filter parameters
1 parent a007509 commit 3be10f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Endpoint/Concerns/BuildsOpenApiPaths.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use ReflectionException;
66
use ReflectionFunction;
7+
use Tobyz\JsonApiServer\Endpoint\Index;
78
use Tobyz\JsonApiServer\JsonApi;
89
use Tobyz\JsonApiServer\Resource\Collection;
910
use Tobyz\JsonApiServer\Resource\Listable;
@@ -124,7 +125,7 @@ private function buildIncludeParameter(Resource $resource): array
124125

125126
private function buildFilterParameters(Resource $resource): array
126127
{
127-
if (!$this instanceof Listable) {
128+
if (!$this instanceof Index) {
128129
return [];
129130
}
130131

0 commit comments

Comments
 (0)