You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony version(s) affected: I believe master branch only
Description
Autowiring failures give this exception:
Error: Method class@anonymous::__toString() must not throw an exception, caught Symfony\Component\DependencyInjection\Exception\AutowiringFailedException:
How to reproduce
In a standard project, try to autowiring using an interface that doesn't exist - e.g.
<?phpnamespaceApp\MessageHandler;
useSymfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactoryInterface;
class FooHandler
{
publicfunction__construct(ArgumentMetadataFactoryInterface$foo)
{
}
}
Possible Solution
I believe this is just an edge-case/bug from #29108
Symfony version(s) affected: I believe
masterbranch onlyDescription
Autowiring failures give this exception:
How to reproduce
In a standard project, try to autowiring using an interface that doesn't exist - e.g.
Possible Solution
I believe this is just an edge-case/bug from #29108