Skip to content

Commit 633ab0f

Browse files
Add return types - batch 1/n
1 parent 023b79a commit 633ab0f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function configure()
8181
;
8282
}
8383

84-
protected function execute(InputInterface $input, OutputInterface $output)
84+
protected function execute(InputInterface $input, OutputInterface $output): int
8585
{
8686
$io = new SymfonyStyle($input, $output);
8787
$filenames = (array) $input->getArgument('filename');

Exception/ParseException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(string $message, int $parsedLine = -1, string $snipp
4646
*
4747
* @return string The snippet of code
4848
*/
49-
public function getSnippet()
49+
public function getSnippet(): string
5050
{
5151
return $this->snippet;
5252
}
@@ -68,7 +68,7 @@ public function setSnippet(string $snippet)
6868
*
6969
* @return string The filename
7070
*/
71-
public function getParsedFile()
71+
public function getParsedFile(): string
7272
{
7373
return $this->parsedFile;
7474
}
@@ -88,7 +88,7 @@ public function setParsedFile(string $parsedFile)
8888
*
8989
* @return int The file line
9090
*/
91-
public function getParsedLine()
91+
public function getParsedLine(): int
9292
{
9393
return $this->parsedLine;
9494
}

0 commit comments

Comments
 (0)