Skip to content

Commit 956371f

Browse files
committed
Make sure is not null
1 parent 4f2f6e7 commit 956371f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entities/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function subEntities(): array
136136
*/
137137
public function getFullCommand(): ?string
138138
{
139-
$text = $this->getProperty('text');
139+
$text = $this->getProperty('text') ?? '';
140140
if (strpos($text, '/') !== 0) {
141141
return null;
142142
}

0 commit comments

Comments
 (0)