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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy