| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | public function getPayload(): ComponentPayload |
||
| 59 | { |
||
| 60 | return ComponentPayload::create($this->getComponentType()) |
||
| 61 | ->textProperty('ACTION', 'DISPLAY') |
||
| 62 | ->textProperty('DESCRIPTION', $this->message) |
||
| 63 | ->property( |
||
| 64 | new DateTimePropertyType('TRIGGER', $this->triggerAt), |
||
| 65 | [new Parameter('VALUE', 'DATE-TIME')] |
||
| 66 | ); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..