From 1b5d04eb92dcde945a198e8bc7d28d2b0820015b Mon Sep 17 00:00:00 2001 From: Roy de Vos Burchart Date: Thu, 1 Aug 2024 17:21:17 +0200 Subject: [PATCH] Code style change in `@PER-CS2.0` affecting `@Symfony` (parentheses for anonymous classes) --- Tests/DependencyInjection/RegisterListenersPassTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { }