After updating to SF5, container linter doesn't pass
problem:
Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass find that GuzzleHttp\HandlerStack methods, for example HandlerStack::push(callable $middleware, $name = '')$middleware is typed as callable but Symfony\Component\ExpressionLanguage\Expression is given
After updating to SF5, container linter doesn't pass
problem:
Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass
find thatGuzzleHttp\HandlerStack
methods, for exampleHandlerStack::push(callable $middleware, $name = '')
$middleware
is typed ascallable
butSymfony\Component\ExpressionLanguage\Expression
is givensolution: change expressions to references