| 1 | <?php |
||
| 11 | class ChangeOpsResult implements ChangeOpResult { |
||
| 12 | |||
| 13 | private $changeOpResults; |
||
| 14 | private $entityId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param EntityId|null $entityId |
||
| 18 | * @param ChangeOpResult[] $changeOpResults |
||
| 19 | */ |
||
| 20 | public function __construct( EntityId $entityId = null, array $changeOpResults = [] ) { |
||
| 24 | |||
| 25 | public function getChangeOpsResults() { |
||
| 28 | |||
| 29 | public function getEntityId() { |
||
| 32 | |||
| 33 | public function isEntityChanged() { |
||
| 42 | |||
| 43 | public function validate(): Result { |
||
| 52 | |||
| 53 | } |
||
| 54 |
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: