diff --git a/Tests/DependencyInjection/RegisterListenersPassTest.php b/Tests/DependencyInjection/RegisterListenersPassTest.php index c18d863..8c1c0e5 100644 --- a/Tests/DependencyInjection/RegisterListenersPassTest.php +++ b/Tests/DependencyInjection/RegisterListenersPassTest.php @@ -202,14 +202,14 @@ public function testInvokableEventListener() $container = new ContainerBuilder(); $container->setParameter('event_dispatcher.event_aliases', [AliasedEvent::class => 'aliased_event']); - $container->register('foo', \get_class(new class() { + $container->register('foo', \get_class(new class { public function onFooBar() { } }))->addTag('kernel.event_listener', ['event' => 'foo.bar']); $container->register('bar', InvokableListenerService::class)->addTag('kernel.event_listener', ['event' => 'foo.bar']); $container->register('baz', InvokableListenerService::class)->addTag('kernel.event_listener', ['event' => 'event']); - $container->register('zar', \get_class(new class() { + $container->register('zar', \get_class(new class { public function onFooBarZar() { }