summaryrefslogtreecommitdiffstats
path: root/lib/private/Console/TimestampFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Console/TimestampFormatter.php')
-rw-r--r--lib/private/Console/TimestampFormatter.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php
index c25ed578805..8d74c28e94f 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -94,11 +94,11 @@ class TimestampFormatter implements OutputFormatterInterface {
/**
* Formats a message according to the given styles.
*
- * @param string $message The message to style
- * @return string The styled message, prepended with a timestamp using the
+ * @param string|null $message The message to style
+ * @return string|null The styled message, prepended with a timestamp using the
* log timezone and dateformat, e.g. "2015-06-23T17:24:37+02:00"
*/
- public function format($message) {
+ public function format(?string $message): ?string {
if (!$this->formatter->isDecorated()) {
// Don't add anything to the output when we shouldn't
return $this->formatter->format($message);