1 | <?php |
||
20 | trait DateJoinedMutatorTrait |
||
21 | { |
||
22 | /** |
||
23 | * @noinspection PhpDocMissingThrowsInspection |
||
24 | * |
||
25 | * @param $value |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function setDateJoined($value) |
||
39 | |||
40 | /** |
||
41 | * @noinspection PhpDocMissingThrowsInspection |
||
42 | * |
||
43 | * @return DateTime |
||
44 | */ |
||
45 | public function getDateJoined() |
||
56 | |||
57 | /** |
||
58 | * @return string|null |
||
59 | */ |
||
60 | public function getDateJoinedIso8601() |
||
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: