Skip to content

Commit 4d0fa1f

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent b29108a commit 4d0fa1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Descriptor/Descriptor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,25 @@ protected function write(string $content, bool $decorated = false): void
5050
/**
5151
* Describes an InputArgument instance.
5252
*/
53-
abstract protected function describeInputArgument(InputArgument $argument, array $options = []);
53+
abstract protected function describeInputArgument(InputArgument $argument, array $options = []): void;
5454

5555
/**
5656
* Describes an InputOption instance.
5757
*/
58-
abstract protected function describeInputOption(InputOption $option, array $options = []);
58+
abstract protected function describeInputOption(InputOption $option, array $options = []): void;
5959

6060
/**
6161
* Describes an InputDefinition instance.
6262
*/
63-
abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []);
63+
abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []): void;
6464

6565
/**
6666
* Describes a Command instance.
6767
*/
68-
abstract protected function describeCommand(Command $command, array $options = []);
68+
abstract protected function describeCommand(Command $command, array $options = []): void;
6969

7070
/**
7171
* Describes an Application instance.
7272
*/
73-
abstract protected function describeApplication(Application $application, array $options = []);
73+
abstract protected function describeApplication(Application $application, array $options = []): void;
7474
}

Helper/ProgressBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function setMessage(string $message, string $name = 'message'): void
183183
$this->messages[$name] = $message;
184184
}
185185

186-
public function getMessage(string $name = 'message')
186+
public function getMessage(string $name = 'message'): string
187187
{
188188
return $this->messages[$name];
189189
}

0 commit comments

Comments
 (0)