@@ -189,7 +189,7 @@ public function testExtensionAddedInKernel()
189
189
$ kernel = new class ($ this ->varDir ) extends TestKernel {
190
190
protected function build (ContainerBuilder $ container ): void
191
191
{
192
- $ container ->registerExtension (new class () extends Extension implements ConfigurationInterface {
192
+ $ container ->registerExtension (new class extends Extension implements ConfigurationInterface {
193
193
public function load (array $ configs , ContainerBuilder $ container ): void
194
194
{
195
195
}
@@ -276,7 +276,7 @@ protected function build(ContainerBuilder $container): void
276
276
{
277
277
/** @var TestSecurityExtension $extension */
278
278
$ extension = $ container ->getExtension ('test_security ' );
279
- $ extension ->addAuthenticatorFactory (new class () implements TestAuthenticatorFactoryInterface {
279
+ $ extension ->addAuthenticatorFactory (new class implements TestAuthenticatorFactoryInterface {
280
280
public function getKey (): string
281
281
{
282
282
return 'token ' ;
@@ -292,19 +292,19 @@ public function registerBundles(): iterable
292
292
{
293
293
yield from parent ::registerBundles ();
294
294
295
- yield new class () extends Bundle {
295
+ yield new class extends Bundle {
296
296
public function getContainerExtension (): ExtensionInterface
297
297
{
298
298
return new TestSecurityExtension ();
299
299
}
300
300
};
301
301
302
- yield new class () extends Bundle {
302
+ yield new class extends Bundle {
303
303
public function build (ContainerBuilder $ container ): void
304
304
{
305
305
/** @var TestSecurityExtension $extension */
306
306
$ extension = $ container ->getExtension ('test_security ' );
307
- $ extension ->addAuthenticatorFactory (new class () implements TestAuthenticatorFactoryInterface {
307
+ $ extension ->addAuthenticatorFactory (new class implements TestAuthenticatorFactoryInterface {
308
308
public function getKey (): string
309
309
{
310
310
return 'form-login ' ;
0 commit comments