Closed
Description
Symfony version(s) affected: 5.0.4
Description
InvalidParameterTypeException while running lint:container command with memcached pool config
How to reproduce
- create new project
composer create-project symfony/website-skeleton my_project_name
- modify your config/packages/cache.yaml:
framework:
cache:
pools:
my.dedicated.cache:
adapter: cache.adapter.memcached
- run
php bin/console lint:container
In CheckTypeDeclarationsPass.php line 263:
Invalid definition for service "my.dedicated.cache": argument 1 of "Symfony\Component\Cache\Adapter\MemcachedAdapter::__construct" accepts "Memcached", "Symfony\Component\Cache\Adapter\AbstractAdapter" passed.