Skip to content

Kernel broken in 6.4.9 (and possibly in latest 7.1.* too) #57662

@garak

Description

@garak

Symfony version(s) affected

6.4.9

Description

This kernel class https://github.com/dustin10/VichUploaderBundle/blob/master/tests/Kernel/SimpleAppKernel.php works in the bundle (e.g. the tests on it pass) until Symfony 6.4.8
Since 6.4.9, the test fails with this error as soon as the test tries to boot the kernel:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: Service "kernel" not found: the container inside "Symfony\Component\DependencyInjection\Argument\ServiceLocator" is a smaller service locator that is empty...

How to reproduce

Run the VichUploaderBundle tests with Symfony 6.4.9 (I did it by altering the composer.json file), you'll get the error.
Do the same with Symfony 6.4.8, the tests will pass.

It should be the same with Symfony 7, but I didn't try (I'm only sure that it fails with the latest and it didn't fail a few days ago, so I suppose it applies to Symfony 7 too):

Possible Solution

No response

Additional Context

No response

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