Skip to content

Commit a12e0ec

Browse files
wouterjnicolas-grekas
authored andcommitted
[Components] Convert to native return types
1 parent e9c944f commit a12e0ec

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

Command/LintCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ public function __construct(string $name = null, callable $directoryIteratorProv
5050
$this->isReadableProvider = null === $isReadableProvider ? null : $isReadableProvider(...);
5151
}
5252

53-
/**
54-
* @return void
55-
*/
56-
protected function configure()
53+
protected function configure(): void
5754
{
5855
$this
5956
->addArgument('filename', InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN')

Exception/ParseException.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ public function getSnippet(): string
5151

5252
/**
5353
* Sets the snippet of code near the error.
54-
*
55-
* @return void
5654
*/
57-
public function setSnippet(string $snippet)
55+
public function setSnippet(string $snippet): void
5856
{
5957
$this->snippet = $snippet;
6058

@@ -73,10 +71,8 @@ public function getParsedFile(): string
7371

7472
/**
7573
* Sets the filename where the error occurred.
76-
*
77-
* @return void
7874
*/
79-
public function setParsedFile(string $parsedFile)
75+
public function setParsedFile(string $parsedFile): void
8076
{
8177
$this->parsedFile = $parsedFile;
8278

@@ -93,10 +89,8 @@ public function getParsedLine(): int
9389

9490
/**
9591
* Sets the line where the error occurred.
96-
*
97-
* @return void
9892
*/
99-
public function setParsedLine(int $parsedLine)
93+
public function setParsedLine(int $parsedLine): void
10094
{
10195
$this->parsedLine = $parsedLine;
10296

0 commit comments

Comments
 (0)