Skip to content

Commit

Permalink
Code style change in @PER-CS2.0 affecting @Symfony (parentheses f…
Browse files Browse the repository at this point in the history
…or anonymous classes)
  • Loading branch information
bonroyage authored and derrabus committed Aug 6, 2024
1 parent 2bde43f commit 1b5d04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/DependencyInjection/RegisterListenersPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
}
Expand Down

0 comments on commit 1b5d04e

Please sign in to comment.