diff options
Diffstat (limited to 'lib/Command/Live.php')
-rw-r--r-- | lib/Command/Live.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Command/Live.php b/lib/Command/Live.php index 0f3ffbc..0e213de 100644 --- a/lib/Command/Live.php +++ b/lib/Command/Live.php @@ -531,9 +531,9 @@ class Live extends ACommandBase { $width = $this->terminal->getWidth() - 13; $message = MiscService::get('message', $result, ''); - $msg1 = substr($message, 0, $width); - $msg2 = substr($message, $width, $width + 10); - $msg3 = substr($message, $width + $width + 10, $width + 10); + $msg1 = (string) substr($message, 0, $width); + $msg2 = (string) substr($message, $width, $width + 10); + $msg3 = (string) substr($message, $width + $width + 10, $width + 10); $status = MiscService::get('status', $result, ''); @@ -587,9 +587,9 @@ class Live extends ACommandBase { $width = $this->terminal->getWidth() - 13; $message = MiscService::get('message', $error, ''); - $err1 = substr($message, 0, $width); - $err2 = substr($message, $width, $width + 10); - $err3 = substr($message, $width + $width + 10, $width + 10); + $err1 = (string) substr($message, 0, $width); + $err2 = (string) substr($message, $width, $width + 10); + $err3 = (string) substr($message, $width + $width + 10, $width + 10); $this->runner->setInfoArray( [ |