Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd00b870

Browse files
committed
Return types to array, but retain typehints
1 parentd00b49a commitd00b870

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-
* @returniterable
27+
* @returnarray<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-
* @returniterable<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)

[8]ページ先頭

©2009-2025 Movatter.jp