Skip to content

Commit

Permalink
fix issue #196
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 2, 2023
1 parent 27ae22c commit 70abfae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20231202-061814.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: '[#196](https://github.com/overtrue/phplint/issues/196) : Better Symfony 7 support'
time: 2023-12-02T06:18:14.755500211Z
6 changes: 3 additions & 3 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
final class Application extends BaseApplication
{
public const NAME = 'phplint';
public const VERSION = '9.0.5';
public const VERSION = '9.0.6';

public function __construct()
{
Expand All @@ -47,7 +47,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null
return parent::run($input, $output);
}

public function doRun(InputInterface $input, OutputInterface $output)
public function doRun(InputInterface $input, OutputInterface $output): int
{
if (true === $input->hasParameterOption(['--manifest'], true)) {
$phar = new Phar($_SERVER['argv'][0]);
Expand All @@ -58,7 +58,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
return parent::doRun($input, $output);
}

protected function configureIO(InputInterface $input, OutputInterface $output)
protected function configureIO(InputInterface $input, OutputInterface $output): void
{
if (Phar::running()) {
$inputDefinition = $this->getDefinition();
Expand Down
8 changes: 4 additions & 4 deletions src/Output/ConsoleOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ public function createProgressBar($max = 0): ProgressBar
return $progressBar;
}

public function progressStart(int $max = 0)
public function progressStart(int $max = 0): void
{
$this->progressBar = $this->createProgressBar($max);
$this->progressBar->start();
}

public function progressAdvance(int $step = 1)
public function progressAdvance(int $step = 1): void
{
$this->progressBar?->advance($step);
}
Expand All @@ -168,7 +168,7 @@ public function progressFinish(): void
unset($this->progressBar);
}

public function progressMessage(string $message, string $name = 'message')
public function progressMessage(string $message, string $name = 'message'): void
{
$this->progressBar?->setMessage($message, $name);
}
Expand Down Expand Up @@ -344,7 +344,7 @@ public function warningBlock(string $message = self::NO_FILE_TO_LINT): void
$style->warning($message);
}

public function newLine(int $count = 1)
public function newLine(int $count = 1): void
{
$this->write(str_repeat(PHP_EOL, $count));
}
Expand Down

0 comments on commit 70abfae

Please sign in to comment.