Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lint:container throws InvalidParameterTypeException when using memcached pool #35599

Closed
@qconer

Description

@qconer

Symfony version(s) affected: 5.0.4

Description
InvalidParameterTypeException while running lint:container command with memcached pool config

How to reproduce

  1. create new project
    composer create-project symfony/website-skeleton my_project_name
  2. modify your config/packages/cache.yaml:
framework:
    cache:
        pools:
            my.dedicated.cache:
                adapter: cache.adapter.memcached
  1. 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.

Possible Solution

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions