Skip to content

Commit

Permalink
[TASK] Fix deprecation warnings in output with PHP 8.2 (#168)
Browse files Browse the repository at this point in the history
Resolves: #165
  • Loading branch information
kevin-appelt authored Feb 21, 2023
1 parent 80151ba commit 85eb5b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
} else {
$fileHandle = fopen($outputOption, 'w');
if ($fileHandle === false) {
throw new \Exception("could not open file '${outputOption}' for writing");
throw new \Exception("could not open file '{$outputOption}' for writing");
}

$reportOutput = new StreamOutput($fileHandle);
Expand Down
2 changes: 1 addition & 1 deletion src/Logging/CompactConsoleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(Printer $printer, OutputInterface $output)

public function notifyFileNotFound(string $file): void
{
$this->output->writeln("<error>WARNING: Input file ${file} does not seem to exist.</error>");
$this->output->writeln("<error>WARNING: Input file {$file} does not seem to exist.</error>");
}

public function notifyFiles(array $files): void
Expand Down
2 changes: 1 addition & 1 deletion src/Logging/MinimalConsoleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(Printer $printer, OutputInterface $output)

public function notifyFileNotFound(string $file): void
{
$this->output->writeln("<error>WARNING: Input file ${file} does not seem to exist.</error>");
$this->output->writeln("<error>WARNING: Input file {$file} does not seem to exist.</error>");
}

public function notifyFiles(array $files): void
Expand Down
2 changes: 1 addition & 1 deletion src/Logging/VerboseConsoleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(Printer $printer, OutputInterface $output)

public function notifyFileNotFound(string $file): void
{
$this->output->writeln("<error>WARNING: Input file ${file} does not seem to exist.</error>");
$this->output->writeln("<error>WARNING: Input file {$file} does not seem to exist.</error>");
}

public function notifyFiles(array $files): void
Expand Down

0 comments on commit 85eb5b9

Please sign in to comment.