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

Skip to content

Service Container Linter and object typehint #34480

Closed
@pfazzi

Description

@pfazzi

Symfony version(s) affected: 4.4.0

Description
When i execute lint:container i get this error:

$> symfony console lint:container

In CheckTypeDeclarationsPass.php line 159:

   Invalid definition for service "sylius.translation.translatable_listener.doctrine.orm": argument 2 of 
   "Sylius\Bundle\ResourceBundle\EventListener\ORMTranslatableListener::__construct"
   accepts "object", "Sylius\Component\Core\Translation\TranslatableEntityLocaleAssigner" passed. 

Is it correct that service container linter has this behaviour against object typehint?

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