diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Index.php | 6 | ||||
-rw-r--r-- | lib/Command/Live.php | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/Command/Index.php b/lib/Command/Index.php index 6fa14d1..b92d2fa 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -611,9 +611,9 @@ class Index 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( [ 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( [ |