| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | Request::macro('overflow', function (Model $model, $properties = "properties") { |
||
| 17 | $overflow = new LaravelOverflow($this, $model, $properties); |
||
|
|
|||
| 18 | return $overflow->overflow(); |
||
| 19 | }); |
||
| 20 | |||
| 21 | Request::macro('allWithOverflow', function (Model $model, $properties = "properties") { |
||
| 22 | $overflow = new LaravelOverflow($this, $model, $properties); |
||
| 23 | return $overflow->allWithOverflow(); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 35 |
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: