| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 27 | public function register() |
|
| 28 | { |
||
| 29 | 27 | $this->mergeConfigFrom(__DIR__ . '/../config/localization.php', 'localization'); |
|
| 30 | |||
| 31 | $this->app->singleton('localization', function () { |
||
| 32 | 27 | return new Localization($this->app); |
|
| 33 | 27 | }); |
|
| 34 | |||
| 35 | 27 | $this->registerHelpers(); |
|
| 36 | 27 | $this->registerMacros(); |
|
| 37 | 27 | } |
|
| 38 | |||
| 51 |
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: