Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | $this->loadViewsFrom(__DIR__ . '/resources/views', 'pherum'); |
||
17 | |||
18 | $this->publishes([ |
||
19 | __DIR__ . '/config/recaptcha.php' => config_path('recaptcha.php'), |
||
20 | ], 'config'); |
||
21 | |||
22 | $this->app->validator->extend('recaptcha', function ($attribute, $value) { |
||
23 | return app('recaptcha')->verify(app('request')); |
||
24 | }); |
||
25 | } |
||
26 | |||
41 |
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: