1 | <?php |
||
14 | class StoreEvent extends FormRequest |
||
15 | { |
||
16 | use ChecksPermissions; |
||
17 | |||
18 | /** |
||
19 | * Determine if the user is authorized to make this request. |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function authorize() |
||
29 | |||
30 | /** |
||
31 | * Get the validation rules that apply to the request. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | public function rules() |
||
42 | } |
||
43 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: