Skip to content

Commit d00b870

Browse files
committed
Return types to array, but retain typehints
1 parent d00b49a commit d00b870

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stubs/schema.stub

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class {{ class }} extends {{ schema }}
2424
/**
2525
* Get the resource fields.
2626
*
27-
* @return iterable
27+
* @return array<mixed>
2828
*/
29-
public function fields(): iterable
29+
public function fields(): array
3030
{
3131
return [
3232
ID::make(),
@@ -38,9 +38,9 @@ class {{ class }} extends {{ schema }}
3838
/**
3939
* Get the resource filters.
4040
*
41-
* @return iterable<Filter>
41+
* @return Filter[]
4242
*/
43-
public function filters(): iterable
43+
public function filters(): array
4444
{
4545
return [
4646
WhereIdIn::make($this),

0 commit comments

Comments
 (0)