mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix(command): Make method compatible with upstream class (backportable)
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7e5ca85f63
commit
dbb669d03d
2 changed files with 4 additions and 4 deletions
|
|
@ -149,7 +149,7 @@ class Base extends Command implements CompletionAwareInterface {
|
|||
$this->interrupted = true;
|
||||
}
|
||||
|
||||
public function run(InputInterface $input, OutputInterface $output) {
|
||||
public function run(InputInterface $input, OutputInterface $output): int {
|
||||
// check if the php pcntl_signal functions are accessible
|
||||
$this->php_pcntl_signal = function_exists('pcntl_signal');
|
||||
if ($this->php_pcntl_signal) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue