Skip to content

Commit c5f3f54

Browse files
wouterjnicolas-grekas
authored andcommitted
Add void return types
1 parent a8161cc commit c5f3f54

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Command/LintCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public function __construct(string $name = null, callable $directoryIteratorProv
5050
$this->isReadableProvider = null === $isReadableProvider ? null : $isReadableProvider(...);
5151
}
5252

53+
/**
54+
* @return void
55+
*/
5356
protected function configure()
5457
{
5558
$this

Exception/ParseException.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function getSnippet(): string
5151

5252
/**
5353
* Sets the snippet of code near the error.
54+
*
55+
* @return void
5456
*/
5557
public function setSnippet(string $snippet)
5658
{
@@ -71,6 +73,8 @@ public function getParsedFile(): string
7173

7274
/**
7375
* Sets the filename where the error occurred.
76+
*
77+
* @return void
7478
*/
7579
public function setParsedFile(string $parsedFile)
7680
{
@@ -89,6 +93,8 @@ public function getParsedLine(): int
8993

9094
/**
9195
* Sets the line where the error occurred.
96+
*
97+
* @return void
9298
*/
9399
public function setParsedLine(int $parsedLine)
94100
{
@@ -97,7 +103,7 @@ public function setParsedLine(int $parsedLine)
97103
$this->updateRepr();
98104
}
99105

100-
private function updateRepr()
106+
private function updateRepr(): void
101107
{
102108
$this->message = $this->rawMessage;
103109

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Inline
3434
private static bool $objectForMap = false;
3535
private static bool $constantSupport = false;
3636

37-
public static function initialize(int $flags, int $parsedLineNumber = null, string $parsedFilename = null)
37+
public static function initialize(int $flags, int $parsedLineNumber = null, string $parsedFilename = null): void
3838
{
3939
self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
4040
self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);

0 commit comments

Comments
 (0)