Skip to content

Commit 23ab454

Browse files
authored
Update request.stub (#48402)
Fix to avoid a PHPStan error. Concerned error: Method ::rules() return type has no value type specified in iterable type array. 💡 See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type
1 parent 7dea22c commit 23ab454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/stubs/request.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class {{ class }} extends FormRequest
1717
/**
1818
* Get the validation rules that apply to the request.
1919
*
20-
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string>
20+
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
2121
*/
2222
public function rules(): array
2323
{

0 commit comments

Comments
 (0)