1 | <?php |
||
10 | class AccountTwoFactorTotpBackupRequest 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 |
||
29 | |||
30 | /** |
||
31 | * Get the validation rules that apply to the request. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | public function rules(): array |
||
39 | } |
||
40 |
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: