| 1 | <?php |
||
| 9 | class Mula implements CastsAttributes |
||
| 10 | { |
||
| 11 | protected $columns = []; |
||
| 12 | |||
| 13 | public function __construct(...$columns) |
||
| 17 | |||
| 18 | public function get($model, string $key, $money, array $attributes) |
||
| 22 | |||
| 23 | protected function getMonetaryValues($money, $attributes) |
||
| 29 | |||
| 30 | protected function expectsCurrencyAndAmountInSameColumn() |
||
| 34 | |||
| 35 | public function set($model, string $key, $money, array $attributes) |
||
| 46 | } |
||
| 47 |
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: