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

Skip to content

ServiceClosureArgument is not recognized by lint:container #39259

Closed
@vudaltsov

Description

@vudaltsov

Symfony version(s) affected: 5.2, 5.1, probably earlier versions too

Description
When service is injected via ServiceClosureArgument like in DoctrineMigrationsExtension, lint:container throws an error:

[ERROR] Invalid definition for service "doctrine.migrations.dependency_factory": argument 2 of "Doctrine\Migrations\DependencyFactory::setDefinition" accepts "callable", "App\CustomSchemaProvider" passed.

How to reproduce
https://github.com/vudaltsov/symfony-lint-container-reproducer

UPDATE
Since doctrine/doctrine-migrations-bundle v3.1.0 container lint fails without any custom service configuration.

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