Skip to content

Commit 9a73814

Browse files
authored
Allow Symfony 6.4 (#7)
1 parent f2d3cc9 commit 9a73814

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@
2828
"require": {
2929
"php": ">=8.2",
3030
"psr/log": "^2|^3",
31-
"symfony/filesystem": "^7.0",
31+
"symfony/filesystem": "^6.4|^7.0",
3232
"symfony/http-client-contracts": "^3.5",
33-
"symfony/process": "^7.0"
33+
"symfony/process": "^6.4|^7.0"
3434
},
3535
"require-dev": {
3636
"phpstan/phpstan": "^1.12",
3737
"phpunit/phpunit": "^10.5",
38-
"symfony/asset-mapper": "^7.1",
39-
"symfony/console": "^7.1",
40-
"symfony/framework-bundle": "^7.1",
41-
"symfony/http-client": "^7.1",
42-
"symfony/http-kernel": "^7.1"
38+
"symfony/asset-mapper": "^6.4|^7.0",
39+
"symfony/console": "^6.4|^7.0",
40+
"symfony/framework-bundle": "^6.4|^7.0",
41+
"symfony/http-client": "^6.4|^7.0",
42+
"symfony/http-kernel": "^6.4|^7.0"
4343
},
4444
"autoload": {
4545
"psr-4": {

src/Command/MinifyAssetCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8282

8383
return Command::FAILURE;
8484
}
85+
/** @var string $inputArg */
86+
$inputArg = file_get_contents($inputArg);
8587

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

9294
/** @var 'css'|'js' $typeArg */
9395
$typeArg = $input->getOption('type') ?? pathinfo($inputArg, PATHINFO_EXTENSION);
94-
$inputArg = $fs->readFile($inputArg);
9596

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

0 commit comments

Comments
 (0)