diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-07 10:07:52 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-07 10:07:52 +0300 |
commit | 22131b89b6c4ac5457c437a9708accbcd12b2c90 (patch) | |
tree | 2a0750603276697fbcd51f1ac2c6b989ff85a41c /lib/Events | |
parent | 44104b9ab6b642785a8ffa5428f927c8f07c5898 (diff) |
Make sure output is always a string
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Events')
-rw-r--r-- | lib/Events/CommandEvent.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Events/CommandEvent.php b/lib/Events/CommandEvent.php index 3c62182bb..67281c254 100644 --- a/lib/Events/CommandEvent.php +++ b/lib/Events/CommandEvent.php @@ -30,7 +30,7 @@ use OCP\Comments\IComment; class CommandEvent extends ChatEvent { protected Command $command; protected string $arguments; - protected ?string $output = null; + protected string $output = ''; public function __construct(Room $room, IComment $message, Command $command, string $arguments) { @@ -51,7 +51,7 @@ class CommandEvent extends ChatEvent { $this->output = $output; } - public function getOutput(): ?string { + public function getOutput(): string { return $this->output; } } |