1 | <?php |
||
11 | final class Alert extends Component |
||
12 | { |
||
13 | /** @var \DateTimeInterface */ |
||
14 | private $triggerAt; |
||
15 | |||
16 | /** @var null|string */ |
||
17 | private $message; |
||
18 | |||
19 | public static function create(DateTimeInterface $triggerAt, string $description = null): Alert |
||
23 | |||
24 | public function __construct(DateTimeInterface $triggerAt, string $description = null) |
||
29 | |||
30 | public function getComponentType(): string |
||
34 | |||
35 | public function getRequiredProperties(): array |
||
43 | |||
44 | public function message(string $message): Alert |
||
50 | |||
51 | public function trigger(DateInterval $triggerAt): Alert |
||
57 | |||
58 | protected function payload(): ComponentPayload |
||
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..