aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-04-18 11:40:12 +0200
committerGitHub <noreply@github.com>2023-04-18 11:40:12 +0200
commit8fe22ebf60248a959ed359aee81a6ea8366f64c7 (patch)
tree91c161163201f9dfc01428377cd4ae53eb295c85 /lib
parent5f879a705b4c74ecc7e6d39f8f97f0dea9814d16 (diff)
parentdc9d8c42bbcd6e65e4d744c6ad0c3b6710bbf5df (diff)
downloadnextcloud-server-8fe22ebf60248a959ed359aee81a6ea8366f64c7.tar.gz
nextcloud-server-8fe22ebf60248a959ed359aee81a6ea8366f64c7.zip
Merge pull request #36617 from nextcloud/update/psr-container
chore: Update PSR container to 2.0.2
Diffstat (limited to 'lib')
-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);