Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 0 |
1 | <?php |
||
34 | 19 | public function boot() |
|
35 | { |
||
36 | 19 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'rapid-pagination'); |
|
37 | 19 | $this->publishes([ |
|
38 | 19 | __DIR__.'/../resources/views' => $this->app->resourcePath('views/vendor/rapid-pagination'), |
|
39 | 19 | ], 'rapid-pagination'); |
|
40 | |||
41 | 19 | if (\File::exists(__DIR__ . '\Helpers\helpers.php')) { |
|
42 | require __DIR__ . '\Helpers\helpers.php'; |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 |
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: