From 956371f2e83fa86c05165ea617f1758df3ccb6bd Mon Sep 17 00:00:00 2001 From: Tii Date: Sun, 20 Mar 2022 18:00:40 +0100 Subject: [PATCH] Make sure is not null --- src/Entities/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Message.php b/src/Entities/Message.php index c7c8b3d7..4c86d660 100644 --- a/src/Entities/Message.php +++ b/src/Entities/Message.php @@ -136,7 +136,7 @@ protected function subEntities(): array */ public function getFullCommand(): ?string { - $text = $this->getProperty('text'); + $text = $this->getProperty('text') ?? ''; if (strpos($text, '/') !== 0) { return null; }