chore: PHP CS Fixer fixes

by @keradus

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/59467/0cd4c52791f40b215ec2553904609a43a1953f80/cs.diff | patch -p0
diff -ru src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php
--- src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php	2025-01-10 14:49:08.578636231 +0000
+++ src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php	2025-01-10 14:49:14.642648083 +0000
@@ -61,5 +61,6 @@
 interface NonFunctionalInterface
 {
     public function foo();
+
     public function bar();
 }
diff -ru src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php
--- src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php	2025-01-10 14:49:12.892644663 +0000
+++ src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php	2025-01-10 14:49:23.921666227 +0000
@@ -1253,10 +1253,7 @@
 
     public function testTemplateTypeWhenAnObjectIsPassedToDenormalize()
     {
-        $normalizer = new class (
-            classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()),
-            propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])
-        ) extends AbstractObjectNormalizerDummy {
+        $normalizer = new class(classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()), propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])) extends AbstractObjectNormalizerDummy {
             protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
             {
                 return true;
@@ -1279,10 +1276,7 @@
             $this->markTestSkipped('The PropertyInfo component before Symfony 7.1 does not support template types.');
         }
 
-        $normalizer = new class (
-            classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()),
-            propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])
-        ) extends AbstractObjectNormalizerDummy {
+        $normalizer = new class(classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()), propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])) extends AbstractObjectNormalizerDummy {
             protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
             {
                 return true;

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages