-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Container lint fails comparing callable "type mismatch" #38056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The same behavior happens in Symfony 4.4. # 5.1
composer create-project symfony/skeleton:v5.1.99 /tmp/sf51 \
&& cd /tmp/sf51 \
&& composer require orm migrations sylius-labs/doctrine-migrations-extra-bundle \
&& (cat << CONFIG
services:
'Doctrine\Migrations\Version\MigrationFactory': 'SyliusLabs\DoctrineMigrationsExtraBundle\Factory\ContainerAwareVersionFactory'
CONFIG
) >> config/packages/doctrine_migrations.yaml \
&& bin/console lint:container
# 4.4
composer create-project symfony/skeleton:v4.4.99 /tmp/sf44 \
&& cd /tmp/sf44 \
&& composer require orm migrations sylius-labs/doctrine-migrations-extra-bundle \
&& (cat << CONFIG
services:
'Doctrine\Migrations\Version\MigrationFactory': 'SyliusLabs\DoctrineMigrationsExtraBundle\Factory\ContainerAwareVersionFactory'
CONFIG
) >> config/packages/doctrine_migrations.yaml \
&& bin/console lint:container |
Related issue: doctrine/DoctrineMigrationsBundle#352 |
loevgaard
added a commit
to Setono/SyliusPluginSkeleton
that referenced
this issue
Sep 15, 2020
Should be fixed in doctrine-migrations-bundle, by doctrine/DoctrineMigrationsBundle#368 |
Thanks for investigating and the heads up. Closing therefor. |
I've updated to 3.1.x and I'm still getting this issue, am I going insane? Edit: Running with |
You might hit #39259 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 5.1.x (probably also lower)
Description
How to reproduce
Found while working with Doctrine Migrations & related bundle: SyliusLabs/DoctrineMigrationsExtraBundle#6
Exact error:
Doctrine migration uses
ServiceClosureArgument
:Method definition:
Possible Solution
🤷 maybe transform
ServiceClosureArgument
in lint tocallable
? Or maybe the Doctrine should use\Closure
notcallable
?The text was updated successfully, but these errors were encountered: