8000 minor #58136 CS: re-apply `trailing_comma_in_multiline` (keradus) · symfony/symfony@183137e · GitHub
[go: up one dir, main page]

Skip to content

Commit 183137e

Browse files
committed
minor #58136 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 | n/a | License | MIT Commits ------- b08f077 CS: re-apply `trailing_comma_in_multiline`
2 parents 5d992a1 + b08f077 commit 183137e

File tree

44 files changed

+59
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+59
-59
lines changed

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Type/StringWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class StringWrapper
1515
{
1616
public function __construct(
17-
private readonly ?string $string = null
17+
private readonly ?string $string = null,
1818
) {
1919
}
2020

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ public function testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader
474474
$trace[2] = [
475475
'class' => DebugClassLoader::class,
476476
'function' => 'testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader',
477-
'args' => [self::class]
477+
'args' => [self::class],
478478
];
479479

480480
$deprecation = new Deprecation('Deprecation by debug class loader', $trace, '');

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/messenger_multiple_failure_transports.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
'transports' => [
1010
'transport_1' => [
1111
'dsn' => 'null://',
12-
'failure_transport' => 'failure_transport_1'
12+
'failure_transport' => 'failure_transport_1',
1313
],
1414
'transport_2' => 'null://',
1515
'transport_3' => [
1616
'dsn' => 'null://',
17-
'failure_transport' => 'failure_transport_3'
17+
'failure_transport' => 'failure_transport_3',
1818
],
1919
'failure_transport_1' => 'null://',
20-
'failure_transport_3' => 'null://'
20+
'failure_transport_3' => 'null://',
2121
],
2222
],
2323
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/messenger_multiple_failure_transports_global.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
'transports' => [
1111
'transport_1' => [
1212
'dsn' => 'null://',
13-
'failure_transport' => 'failure_transport_1'
13+
'failure_transport' => 'failure_transport_1',
1414
],
1515
'transport_2' => 'null://',
1616
'transport_3' => [
1717
'dsn' => 'null://',
18-
'failure_transport' => 'failure_transport_3'
18+
'failure_transport' => 'failure_transport_3',
1919
],
2020
'failure_transport_global' => 'null://',
2121
'failure_transport_1' => 'null://',

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/messenger_transports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'multiplier' => 3,
2424
'max_delay' => 100,
2525
],
26-
'rate_limiter' => 'customised_worker'
26+
'rate_limiter' => 'customised_worker',
2727
],
2828
'failed' => 'in-memory:///',
2929
'redis' => 'redis://127.0.0.1:6379/messages',

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'handle_all_throwables' => true,
1010
'php_errors' => ['log' => true],
1111
'messenger' => [
12-
'enabled' => true
12+
'enabled' => true,
1313
],
1414
'mailer' => [
1515
'dsn' => 'smtp://example.com',
@@ -18,17 +18,17 @@
1818
'enabled' => true,
1919
'notification_on_failed_messages' => true,
2020
'chatter_transports' => [
21-
'slack' => 'null'
21+
'slack' => 'null',
2222
],
2323
'texter_transports' => [
24-
'twilio' => 'null'
24+
'twilio' => 'null',
2525
],
2626
'channel_policy' => [
2727
'low' => ['slack'],
2828
'high' => ['slack', 'twilio'],
2929
],
3030
'admin_recipients' => [
3131
['email' => 'test@test.de', 'phone' => '+490815',],
32-
]
32+
],
3333
],
3434
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_with_disabled_message_bus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
'notifier' => [
1515
'message_bus' => false,
1616
'chatter_transports' => [
17-
'test' => 'null'
17+
'test' => 'null',
1818
],
1919
'texter_transports' => [
20-
'test' => 'null'
20+
'test' => 'null',
2121
],
2222
],
2323
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_with_specific_message_bus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
'notifier' => [
1515
'message_bus' => 'app.another_bus',
1616
'chatter_transports' => [
17-
'test' => 'null'
17+
'test' => 'null',
1818
],
1919
'texter_transports' => [
20-
'test' => 'null'
20+
'test' => 'null',
2121
],
2222
],
2323
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_without_mailer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
'enabled' => true,
1919
'notification_on_failed_messages' => true,
2020
'chatter_transports' => [
21-
'slack' => 'null'
21+
'slack' => 'null',
2222
],
2323
'texter_transports' => [
24-
'twilio' => 'null'
24+
'twilio' => 'null',
2525
],
2626
'channel_policy' => [
2727
'low' => ['slack'],
2828
'high' => ['slack', 'twilio'],
2929
],
3030
'admin_recipients' => [
3131
['email' => 'test@test.de', 'phone' => '+490815',],
32-
]
32+
],
3333
],
3434
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_without_messenger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
'enabled' => true,
1919
'notification_on_failed_messages' => true,
2020
'chatter_transports' => [
21-
'slack' => 'null'
21+
'slack' => 'null',
2222
],
2323
'texter_transports' => [
24-
'twilio' => 'null'
24+
'twilio' => 'null',
2525
],
2626
'channel_policy' => [
2727
'low' => ['slack'],
2828
'high' => ['slack', 'twilio'],
2929
],
3030
'admin_recipients' => [
3131
['email' => 'test@test.de', 'phone' => '+490815',],
32-
]
32+
],
3333
],
3434
'scheduler' => false,
3535
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
'enabled' => true,
1010
],
1111
'serializer' => [
12-
'enabled' => true
12+
'enabled' => true,
1313
],
1414
]);

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/profiler_collect_serializer_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
'serializer' => [
1313
'enabled' => true,
14-
]
14+
],
1515
]);

src/Symfony/Component/DependencyInjection/Tests/Fixtures/AcmeConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function nested(array $value)
2929
public function toArray(): array
3030
{
3131
return [
32-
'color' => $this->color
32+
'color' => $this->color,
3333
];
3434
}
3535

src/Symfony/Component/DependencyInjection/Tests/Fixtures/AutoconfigureAttributed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
['another_tag' => ['attr' => 234]],
1919
],
2020
calls: [
21-
['setBar' => [2, 3]]
21+
['setBar' => [2, 3]],
2222
],
2323
bind: [
2424
'$bar' => 1,

src/Symfony/Component/DependencyInjection/Tests/Fixtures/FooClassWithDefaultArrayAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ class FooClassWithDefaultArrayAttribute
77
public function __construct(
88
array $array = ['a', 'b', 'c'],
99
bool $firstOptional = false,
10-
bool $secondOptional = false
10+
bool $secondOptional = false,
1111
) {}
1212
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedLocatorConsumerConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
final class TaggedLocatorConsumerConsumer
1515
{
1616
public function __construct(
17-
private TaggedLocatorConsumer $locatorConsumer
17+
private TaggedLocatorConsumer $locatorConsumer,
1818
) {
1919
}
2020

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedLocatorConsumerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class TaggedLocatorConsumerFactory
1818
{
1919
public function __invoke(
2020
#[AutowireLocator('foo_bar', indexAttribute: 'key')]
21-
ContainerInterface $locator
21+
ContainerInterface $locator,
2222
): TaggedLocatorConsumer {
2323
return new TaggedLocatorConsumer($locator);
2424
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedService4.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ public function __construct(
2929
private string $param1,
3030
#[CustomAnyAttribute]
3131
#[CustomParameterAttribute(someAttribute: "on param2 in constructor")]
32-
string $param2
32+
string $param2,
3333
) {}
3434

3535
#[CustomAnyAttribute]
3636
#[CustomMethodAttribute(someAttribute: "on fooAction")]
3737
public function fooAction(
3838
#[CustomAnyAttribute]
3939
#[CustomParameterAttribute(someAttribute: "on param1 in fooAction")]
40-
string $param1
40+
string $param1,
4141
) {}
4242

4343
#[CustomAnyAttribute]

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedService5.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public function __construct(
2727
#[CustomChildAttribute]
2828
public function fooAction(
2929
#[CustomChildAttribute]
30-
string $param1
30+
string $param1,
3131
) {}
3232
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/WithTarget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WithTarget
1717
{
1818
public function __construct(
1919
#[Target('image.storage')]
20-
BarInterface $bar
20+
BarInterface $bar,
2121
) {
2222
}
2323
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/WithTargetAnonymous.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WithTargetAnonymous
1717
{
1818
public function __construct(
1919
#[Target]
20-
BarInterface $baz
20+
BarInterface $baz,
2121
) {
2222
}
2323
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/env_configurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
->set('foo', \stdClass::class)
1010
->public()
1111
->args([
12-
env('CCC')->int()
12+
env('CCC')->int(),
1313
]);
1414
};

src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_non_scalar_tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'foo' => 'bar',
1515
'bar' => [
1616
'foo' => 'bar',
17-
'bar' => 'foo'
17+
'bar' => 'foo',
1818
]])
1919
;
2020

src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes_80.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function __construct(
133133
'decorated' => new AutowireDecorated(),
134134
'iterator' => new AutowireIterator('foo'),
135135
'locator' => new AutowireLocator('foo'),
136-
'service' => new Autowire(service: 'bar')
136+
'service' => new Autowire(service: 'bar'),
137137
])] array $options)
138138
{
139139
}

src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class_exists('Test\\'.OverrideOutsideFinalProperty::class, true);
421421
'The "Symfony\Component\ErrorHandler\Tests\Fixtures\FinalProperty\FinalProperty::$pub" property is considered final. You should not override it in "Symfony\Component\ErrorHandler\Tests\Fixtures\OverrideFinalProperty".',
422422
'The "Symfony\Component\ErrorHandler\Tests\Fixtures\FinalProperty\FinalProperty::$prot" property is considered final. You should not override it in "Symfony\Component\ErrorHandler\Tests\Fixtures\OverrideFinalProperty".',
423423
'The "Symfony\Component\ErrorHandler\Tests\Fixtures\FinalProperty\FinalProperty::$implicitlyFinal" property is considered final. You should not override it in "Symfony\Component\ErrorHandler\Tests\Fixtures\OverrideFinalProperty".',
424-
'The "Test\Symfony\Component\ErrorHandler\Tests\FinalProperty\OutsideFinalProperty::$final" property is considered final. You should not override it in "Test\Symfony\Component\ErrorHandler\Tests\OverrideOutsideFinalProperty".'
424+
'The "Test\Symfony\Component\ErrorHandler\Tests\FinalProperty\OutsideFinalProperty::$final" property is considered final. You should not override it in "Test\Symfony\Component\ErrorHandler\Tests\OverrideOutsideFinalProperty".',
425425
], $deprecations);
426426
}
427427

src/Symfony/Component/Form/Tests/Extension/Core/Type/RepeatedTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function testSubmitNullForTextTypeWithEmptyDataOptionSetToEmptyString($em
199199
'type' => TextType::class,
200200
'options' => [
201201
'empty_data' => $emptyData,
202-
]
202+
],
203203
]);
204204
$form->submit($submittedData);
205205

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ public function testEsiCacheIncludesEmbeddedResponseContentWhenMainResponseFails
12921292
'headers' => [
12931293
'Cache-Control' => 's-maxage=10', // stays fresh
12941294
'Last-Modified' => 'Mon, 12 Aug 2024 10:05:00 +0000',
1295-
]
1295+
],
12961296
],
12971297
]);
12981298

@@ -1349,7 +1349,7 @@ public function testEsiCacheIncludesEmbeddedResponseContentWhenMainResponseFails
13491349
'headers' => [
13501350
'Cache-Control' => 's-maxage=0', // goes stale immediately
13511351
'Last-Modified' => 'Mon, 12 Aug 2024 10:05:00 +0000',
1352-
]
1352+
],
13531353
],
13541354
]);
13551355

@@ -1414,7 +1414,7 @@ public function testEsiCacheIncludesEmbeddedResponseContentWhenMainAndEmbeddedRe
14141414
'headers' => [
14151415
'Cache-Control' => 's-maxage=10',
14161416
'Last-Modified' => 'Mon, 12 Aug 2024 10:00:00 +0000',
1417-
]
1417+
],
14181418
],
14191419
]);
14201420

src/Symfony/Component/Mailer/Bridge/MailerSend/Tests/Webhook/Fixtures/clicked.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$wh->setTags(["test-tag"]);
88
$wh->setMetadata([
99
'ip' => '127.0.0.1',
10-
'url' => 'https://www.mailersend.com'
10+
'url' => 'https://www.mailersend.com',
1111
]);
1212
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.uP', '2024-01-01T12:00:00.000000Z'));
1313

src/Symfony/Component/Mailer/Bridge/MailerSend/Tests/Webhook/Fixtures/clicked_unique.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$wh->setTags(["test-tag"]);
88
$wh->setMetadata([
99
'ip' => '127.0.0.1',
10-
'url' => 'https://www.mailersend.com'
10+
'url' => 'https://www.mailersend.com',
1111
]);
1212
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.uP', '2024-01-01T12:00:00.000000Z'));
1313

src/Symfony/Component/Mailer/Bridge/MailerSend/Tests/Webhook/Fixtures/opened.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$wh->setRecipientEmail('test@example.com');
77
$wh->setTags(["test-tag"]);
88
$wh->setMetadata([
9-
'ip' => '127.0.0.1'
9+
'ip' => '127.0.0.1',
1010
]);
1111
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.uP', '2024-01-01T12:00:00.000000Z'));
1212

src/Symfony/Component/Mailer/Bridge/MailerSend/Tests/Webhook/Fixtures/opened_unique.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$wh->setRecipientEmail('test@example.com');
77
$wh->setTags(["test-tag"]);
88
$wh->setMetadata([
9-
'ip' => '127.0.0.1'
9+
'ip' => '127.0.0.1',
1010
]);
1111
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.uP', '2024-01-01T12:00:00.000000Z'));
1212

src/Symfony/Component/Mailer/Bridge/MailerSend/Tests/Webhook/Fixtures/unsubscribed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$wh->setTags(["test-tag"]);
88
$wh->setMetadata([
99
'reason' => 'NO_LONGER_WANT',
10-
'readable_reason' => 'I no longer want to receive these emails'
10+
'readable_reason' => 'I no longer want to receive these emails',
1111
]);
1212
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.uP', '2024-01-01T12:00:00.000000Z'));
1313

src/Symfony/Component/Mailer/Bridge/Resend/Tests/Webhook/Fixtures/sent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'headers' => [
1313
[
1414
'name' => 'Sender',
15-
'value' => 'test@resend.com'
15+
'value' => 'test@resend.com',
1616
],
1717
],
1818
'subject' => 'Test subject',

src/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyPropertyAndGetterWithDifferentTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct(
1010
/**
1111
* @var string
1212
*/
13-
private string $foo
13+
private string $foo,
1414
) {
1515
}
1616

0 commit comments

Comments
 (0)
0