Skip to content

Commit

Permalink
Allow Symfony 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Oct 19, 2024
1 parent c7bdc9d commit 155aa19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/MinifyAssetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int

return Command::FAILURE;
}
/** @var string $inputArg */
$inputArg = file_get_contents($inputArg);

/** @var string|null $outputArg */
$outputArg = $input->getArgument('output');
Expand All @@ -91,7 +93,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int

/** @var 'css'|'js' $typeArg */
$typeArg = $input->getOption('type') ?? pathinfo($inputArg, PATHINFO_EXTENSION);
$inputArg = file_get_contents($inputArg);

$output = $this->minifier->minify($inputArg, $typeArg);

Expand Down

0 comments on commit 155aa19

Please sign in to comment.