diff --git a/composer.json b/composer.json index 1f9b209..e67da91 100644 --- a/composer.json +++ b/composer.json @@ -28,18 +28,18 @@ "require": { "php": ">=8.2", "psr/log": "^2|^3", - "symfony/filesystem": "^7.0", + "symfony/filesystem": "^6.4|^7.0", "symfony/http-client-contracts": "^3.5", - "symfony/process": "^7.0" + "symfony/process": "^6.4|^7.0" }, "require-dev": { "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^10.5", - "symfony/asset-mapper": "^7.1", - "symfony/console": "^7.1", - "symfony/framework-bundle": "^7.1", - "symfony/http-client": "^7.1", - "symfony/http-kernel": "^7.1" + "symfony/asset-mapper": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0" }, "autoload": { "psr-4": { diff --git a/src/Command/MinifyAssetCommand.php b/src/Command/MinifyAssetCommand.php index fb532fb..cf65469 100644 --- a/src/Command/MinifyAssetCommand.php +++ b/src/Command/MinifyAssetCommand.php @@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int /** @var 'css'|'js' $typeArg */ $typeArg = $input->getOption('type') ?? pathinfo($inputArg, PATHINFO_EXTENSION); - $inputArg = $fs->readFile($inputArg); + $inputArg = file_get_contents($inputArg); $output = $this->minifier->minify($inputArg, $typeArg);