You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I tried to configure Guzzle with middlewares completly in yaml.
I tried to push a middleware into a handler stack. The method requires a parameter with the type callable and gets a Closure. It works fine but when i run lint:container, I get: argument 1 of "GuzzleHttp\HandlerStack::push" accepts "callable", "Closure" passed.
Symfony version(s) affected: 4.4.7
Description
I tried to configure Guzzle with middlewares completly in yaml.
I tried to push a middleware into a handler stack. The method requires a parameter with the type
callable
and gets aClosure
. It works fine but when i runlint:container
, I get:argument 1 of "GuzzleHttp\HandlerStack::push" accepts "callable", "Closure" passed.
It still works, but the linter complains.
How to reproduce
Possible Solution
The linter should check types similar to the option resolver probably needs to know of the
callable
type.The text was updated successfully, but these errors were encountered: