1 | <?php |
||
10 | class PasswordResetRequest extends FormRequest |
||
11 | { |
||
12 | /** |
||
13 | * Determine if the user is authorized to make this request. |
||
14 | * |
||
15 | * @throws \Cortex\Foundation\Exceptions\GenericException |
||
16 | * |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function authorize(): bool |
||
27 | |||
28 | /** |
||
29 | * Get the validation rules that apply to the request. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function rules(): array |
||
37 | } |
||
38 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: