Skip to content

Commit 9519b54

Browse files
Merge branch '5.4' into 6.3
* 5.4: Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2 parents 8914597 + 2a31f2d commit 9519b54

File tree

1,395 files changed

+9711
-2217
lines changed

Some content is hidden

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

1,395 files changed

+9711
-2217
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2+
f4118e110a46de3ffb799e7d79bf15128d1646ea

.github/workflows/integration-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ jobs:
9595
- 8094:8094
9696
- 11210:11210
9797
sqs:
98-
image: asyncaws/testing-sqs
98+
image: localstack/localstack:3.0.2
9999
ports:
100-
- 9494:9494
100+
- 4566:4566
101101
zookeeper:
102102
image: wurstmeister/zookeeper:3.4.6
103103
kafka:
@@ -183,8 +183,8 @@ jobs:
183183
REDIS_SENTINEL_SERVICE: redis_sentinel
184184
MESSENGER_REDIS_DSN: redis://127.0.0.1:7006/messages
185185
MESSENGER_AMQP_DSN: amqp://localhost/%2f/messages
186-
MESSENGER_SQS_DSN: "sqs://localhost:9494/messages?sslmode=disable&poll_timeout=0.01"
187-
MESSENGER_SQS_FIFO_QUEUE_DSN: "sqs://localhost:9494/messages.fifo?sslmode=disable&poll_timeout=0.01"
186+
MESSENGER_SQS_DSN: "sqs://localhost:4566/messages?sslmode=disable&poll_timeout=0.01"
187+
MESSENGER_SQS_FIFO_QUEUE_DSN: "sqs://localhost:4566/messages.fifo?sslmode=disable&poll_timeout=0.01"
188188
KAFKA_BROKER: 127.0.0.1:9092
189189
POSTGRES_HOST: localhost
190190

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
'@Symfony:risky' => true,
3131
'protected_to_private' => false,
3232
'native_constant_invocation' => ['strict' => false],
33+
'nullable_type_declaration_for_default_null_value' => true,
3334
'header_comment' => ['header' => $fileHeaderComment],
3435
'modernize_strpos' => true,
3536
'get_class_to_class_keyword' => true,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"amphp/http-client": "^4.2.1",
126126
"amphp/http-tunnel": "^1.0",
127127
"async-aws/ses": "^1.0",
128-
"async-aws/sqs": "^1.0",
128+
"async-aws/sqs": "^1.0|^2.0",
129129
"async-aws/sns": "^1.0",
130130
"cache/integration-tests": "dev-master",
131131
"doctrine/annotations": "^1.13.1|^2",

src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(ContainerInterface $container, array $listeners = []
4444
$this->listeners = $listeners;
4545
}
4646

47-
public function dispatchEvent($eventName, EventArgs $eventArgs = null): void
47+
public function dispatchEvent($eventName, ?EventArgs $eventArgs = null): void
4848
{
4949
if (!$this->initializedSubscribers) {
5050
$this->initializeSubscribers();

src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function addLogger(string $name, DebugStack $logger)
5858
/**
5959
* @return void
6060
*/
61-
public function collect(Request $request, Response $response, \Throwable $exception = null)
61+
public function collect(Request $request, Response $response, ?\Throwable $exception = null)
6262
{
6363
$this->data = [
6464
'queries' => $this->collectQueries(),

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function setMappingDriverConfig(array $mappingConfig, string $mappingN
141141
*
142142
* Returns false when autodetection failed, an array of the completed information otherwise.
143143
*/
144-
protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \ReflectionClass $bundle, ContainerBuilder $container, string $bundleDir = null): array|false
144+
protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \ReflectionClass $bundle, ContainerBuilder $container, ?string $bundleDir = null): array|false
145145
{
146146
$bundleClassDir = \dirname($bundle->getFileName());
147147
$bundleDir ??= $bundleClassDir;
@@ -451,7 +451,7 @@ abstract protected function getMappingObjectDefaultName(): string;
451451
/**
452452
* Relative path from the bundle root to the directory where mapping files reside.
453453
*/
454-
abstract protected function getMappingResourceConfigDirectory(string $bundleDir = null): string;
454+
abstract protected function getMappingResourceConfigDirectory(?string $bundleDir = null): string;
455455

456456
/**
457457
* Extension used by the mapping files.

src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DoctrineChoiceLoader extends AbstractChoiceLoader
3636
*
3737
* @param string $class The class name of the loaded objects
3838
*/
39-
public function __construct(ObjectManager $manager, string $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
39+
public function __construct(ObjectManager $manager, string $class, ?IdReader $idReader = null, ?EntityLoaderInterface $objectLoader = null)
4040
{
4141
$classMetadata = $manager->getClassMetadata($class);
4242

src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function isIntId(): bool
7474
*
7575
* This method assumes that the object has a single-column ID.
7676
*/
77-
public function getIdValue(object $object = null): string
77+
public function getIdValue(?object $object = null): string
7878
{
7979
if (!$object) {
8080
return '';

src/Symfony/Bridge/Doctrine/IdGenerator/UlidGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class UlidGenerator extends AbstractIdGenerator
2121
{
2222
private ?UlidFactory $factory;
2323

24-
public function __construct(UlidFactory $factory = null)
24+
public function __construct(?UlidFactory $factory = null)
2525
{
2626
$this->factory = $factory;
2727
}

0 commit comments

Comments
 (0)