Skip to content

Commit a8161cc

Browse files
wouterjnicolas-grekas
authored andcommitted
Add PHP types to private methods and functions
1 parent 20dfa1e commit a8161cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
124124
return $this->display($io, $filesInfo);
125125
}
126126

127-
private function validate(string $content, int $flags, string $file = null)
127+
private function validate(string $content, int $flags, string $file = null): array
128128
{
129129
$prevErrorHandler = set_error_handler(function ($level, $message, $file, $line) use (&$prevErrorHandler) {
130130
if (\E_USER_DEPRECATED === $level) {

0 commit comments

Comments
 (0)