Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-07 10:07:52 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-07 10:07:52 +0300
commit22131b89b6c4ac5457c437a9708accbcd12b2c90 (patch)
tree2a0750603276697fbcd51f1ac2c6b989ff85a41c /lib/Events
parent44104b9ab6b642785a8ffa5428f927c8f07c5898 (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.php4
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;
}
}