8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

Changed Expression to Reference in extension class #285

Closed knyk closed 4 years ago

knyk commented 4 years ago
Q A
Bug fix yes
New feature no
BC breaks no
Deprecations no
Tests pass yes
Fixed tickets
License MIT

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

solution: change expressions to references