]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(command): Make method compatible with upstream class (requires 3rdparty bump)
authorJoas Schilling <coding@schilljs.com>
Wed, 2 Oct 2024 21:41:44 +0000 (23:41 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Oct 2024 10:11:25 +0000 (12:11 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Console/TimestampFormatter.php

index 0254bff2b324671a728ef85cf73e8c0ebf6d0d65..e8d9eef6b16c9a5915b7e17606c85549bbff01ff 100644 (file)
@@ -32,7 +32,7 @@ class TimestampFormatter implements OutputFormatterInterface {
         *
         * @param bool $decorated Whether to decorate the messages or not
         */
-       public function setDecorated($decorated) {
+       public function setDecorated(bool $decorated) {
                $this->formatter->setDecorated($decorated);
        }
 
@@ -51,7 +51,7 @@ class TimestampFormatter implements OutputFormatterInterface {
         * @param string $name The style name
         * @param OutputFormatterStyleInterface $style The style instance
         */
-       public function setStyle($name, OutputFormatterStyleInterface $style) {
+       public function setStyle(string $name, OutputFormatterStyleInterface $style) {
                $this->formatter->setStyle($name, $style);
        }
 
@@ -61,7 +61,7 @@ class TimestampFormatter implements OutputFormatterInterface {
         * @param string $name
         * @return bool
         */
-       public function hasStyle($name): bool {
+       public function hasStyle(string $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): OutputFormatterStyleInterface {
+       public function getStyle(string $name): OutputFormatterStyleInterface {
                return $this->formatter->getStyle($name);
        }