| 1 | <?php |
||
| 20 | trait DateUpdatedMutatorTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @param $value |
||
| 24 | * @return $this |
||
| 25 | * @throws \Exception |
||
| 26 | */ |
||
| 27 | public function setDateUpdated($value) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return DateTime|false|null |
||
| 40 | * @throws \Exception |
||
| 41 | */ |
||
| 42 | public function getDateUpdated() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return false|string|null |
||
| 55 | * @throws \Exception |
||
| 56 | */ |
||
| 57 | public function getDateUpdatedIso8601() |
||
| 72 | } |
||
| 73 |
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: