aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-02 23:38:05 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-21 11:28:51 +0200
commitdbb669d03df789dd10f46721e749e717b4c638c6 (patch)
tree295147248529ff8d8b81974d5cab2c507cebfaba /lib
parent7e5ca85f639b687eef527de8d4fe22d7677e66d2 (diff)
downloadnextcloud-server-dbb669d03df789dd10f46721e749e717b4c638c6.tar.gz
nextcloud-server-dbb669d03df789dd10f46721e749e717b4c638c6.zip
fix(command): Make method compatible with upstream class (backportable)
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 de0675cc5df..1feb52fe673 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -41,7 +41,7 @@ class TimestampFormatter implements OutputFormatterInterface {
*
* @return bool true if the output will decorate messages, false otherwise
*/
- public function isDecorated() {
+ public function isDecorated(): bool {
return $this->formatter->isDecorated();
}
@@ -61,7 +61,7 @@ class TimestampFormatter implements OutputFormatterInterface {
* @param string $name
* @return bool
*/
- public function hasStyle($name) {
+ public function hasStyle($name): bool {
return $this->formatter->hasStyle($name);
}
@@ -72,7 +72,7 @@ class TimestampFormatter implements OutputFormatterInterface {
* @return OutputFormatterStyleInterface
* @throws \InvalidArgumentException When style isn't defined
*/
- public function getStyle($name) {
+ public function getStyle($name): OutputFormatterStyleInterface {
return $this->formatter->getStyle($name);
}