Skip to content

Commit f642d67

Browse files
minor symfony#58976 CS: re-apply trailing_comma_in_multiline (keradus)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- CS: re-apply trailing_comma_in_multiline | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix CS | License | MIT re-apply CS for `trailing_comma_in_multiline` and simplify config file Commits ------- 045106a CS: re-apply trailing_comma_in_multiline
2 parents c307215 + 045106a commit f642d67

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
'@Symfony:risky' => true,
3333
'protected_to_private' => false,
3434
'header_comment' => ['header' => $fileHeaderComment],
35-
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'match', 'parameters']],
3635
])
3736
->setRiskyAllowed(true)
3837
->setFinder(

src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
?HttpClientInterface $client = null,
4040
?EventDispatcherInterface $dispatcher = null,
4141
?LoggerInterface $logger = null,
42-
private ?string $region = null
42+
private ?string $region = null,
4343
) {
4444
parent::__construct($client, $dispatcher, $logger);
4545
}

src/Symfony/Component/Messenger/Tests/Command/FailedMessagesRetryCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function testSkipRunWithServiceLocator()
241241

242242
$receiver->expects($this->once())->method('find')
243243
->willReturn(Envelope::wrap(new \stdClass(), [
244-
new SentToFailureTransportStamp($originalTransportName)
244+
new SentToFailureTransportStamp($originalTransportName),
245245
]));
246246

247247
$receiver->expects($this->never())->method('ack');

src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ protected function configureRoute(
498498
Route $route,
499499
\ReflectionClass $class,
500500
\ReflectionMethod $method,
501-
object $annot
501+
object $annot,
502502
): void {
503503
$route->setDefault('_controller', $class->getName().'::'.$method->getName());
504504
}

src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ public function testNormalizeWithMethodNamesSimilarToAccessors()
976976
'tell' => true,
977977
'class' => true,
978978
'responsibility' => true,
979-
123 => 321
979+
123 => 321,
980980
], $normalized);
981981
}
982982
}

0 commit comments

Comments
 (0)