aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-02 23:41:44 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-07 12:11:25 +0200
commit87acaef73c77db05b11b5e82f740e0991ec4b3a9 (patch)
tree04291865c1f95b61c28d8dc36269eab3daa0f327 /lib
parentfd77bc84d12728ae8e4b72012f82ab2137ad1ba2 (diff)
downloadnextcloud-server-87acaef73c77db05b11b5e82f740e0991ec4b3a9.tar.gz
nextcloud-server-87acaef73c77db05b11b5e82f740e0991ec4b3a9.zip
fix(command): Make method compatible with upstream class (requires 3rdparty bump)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Console/TimestampFormatter.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php
index 0254bff2b32..e8d9eef6b16 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -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);
}