Skip to content

Commit

Permalink
Make sure is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed Mar 20, 2022
1 parent 4f2f6e7 commit 956371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entities/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 956371f

Please sign in to comment.