By upgrading Symfony from 4.4 to 5.4 I’ve taken an error
Argument 2 passed to SymfonyComponentAssetVersionStrategyJsonManifestVersionStrategy::__construct() must be an instance of SymfonyContractsHttpClientHttpClientInterface or null, instance of GuzzleHttpClient given, called in /var/www/var/cache/dev/ContainerHhXYcwE/App_KernelDevDebugContainer.php
JsonManifestVersionStrategy is not used in the project directly. Would appreciate any help where to start from?
2
Answers
The answer was found in Why doesn't the asset function work in Symfony 5? posted by Anderson:
replace it by
You need to upgrade your Guzzle to a version that implements PSR-18.