1 | <?php |
||
10 | class LogOperation |
||
11 | { |
||
12 | /** |
||
13 | * Handle an incoming request. |
||
14 | * |
||
15 | * @param \Illuminate\Http\Request $request |
||
16 | * @param \Closure $next |
||
17 | * |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function handle(Request $request, \Closure $next) |
||
36 | |||
37 | /** |
||
38 | * @param Request $request |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | protected function shouldLogOperation(Request $request) |
||
48 | |||
49 | |||
50 | /** |
||
51 | * @param $method |
||
52 | * |
||
53 | * @return bool |
||
54 | */ |
||
55 | protected function inAllowedMethods($method) { |
||
67 | |||
68 | /** |
||
69 | * Determine if the request has a URI that should pass through CSRF verification. |
||
70 | * |
||
71 | * @param \Illuminate\Http\Request $request |
||
72 | * |
||
73 | * @return bool |
||
74 | */ |
||
75 | protected function inExceptArray($request) |
||
99 | } |
||
100 |
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: