Skip to content

Commit 3cd13dc

Browse files
Merge branch '6.3' into 6.4
* 6.3: minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs 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
2 parents ddfd72e + 5270fc8 commit 3cd13dc

28 files changed

+55
-55
lines changed

Attribute/AsAnnounceListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsAnnounceListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $transition = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $transition = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('announce', 'transition', $workflow, $transition), $method, $priority, $dispatcher);
3232
}

Attribute/AsCompletedListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsCompletedListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $transition = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $transition = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('completed', 'transition', $workflow, $transition), $method, $priority, $dispatcher);
3232
}

Attribute/AsEnterListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsEnterListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $place = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $place = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('enter', 'place', $workflow, $place), $method, $priority, $dispatcher);
3232
}

Attribute/AsEnteredListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsEnteredListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $place = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $place = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('entered', 'place', $workflow, $place), $method, $priority, $dispatcher);
3232
}

Attribute/AsGuardListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsGuardListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $transition = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $transition = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('guard', 'transition', $workflow, $transition), $method, $priority, $dispatcher);
3232
}

Attribute/AsLeaveListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsLeaveListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $place = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $place = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('leave', 'place', $workflow, $place), $method, $priority, $dispatcher);
3232
}

Attribute/AsTransitionListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ final class AsTransitionListener extends AsEventListener
2222
use BuildEventNameTrait;
2323

2424
public function __construct(
25-
string $workflow = null,
26-
string $transition = null,
27-
string $method = null,
25+
?string $workflow = null,
26+
?string $transition = null,
27+
?string $method = null,
2828
int $priority = 0,
29-
string $dispatcher = null,
29+
?string $dispatcher = null,
3030
) {
3131
parent::__construct($this->buildEventName('transition', 'transition', $workflow, $transition), $method, $priority, $dispatcher);
3232
}

Attribute/BuildEventNameTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
trait BuildEventNameTrait
2222
{
23-
private static function buildEventName(string $keyword, string $argument, string $workflow = null, string $node = null): string
23+
private static function buildEventName(string $keyword, string $argument, ?string $workflow = null, ?string $node = null): string
2424
{
2525
if (null === $workflow) {
2626
if (null !== $node) {

DataCollector/WorkflowDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
) {
4141
}
4242

43-
public function collect(Request $request, Response $response, \Throwable $exception = null): void
43+
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
4444
{
4545
}
4646

@@ -165,7 +165,7 @@ private function getEventListeners(WorkflowInterface $workflow): array
165165
return $listeners;
166166
}
167167

168-
private function summarizeListener(callable $callable, string $eventName = null, Transition $transition = null): array
168+
private function summarizeListener(callable $callable, ?string $eventName = null, ?Transition $transition = null): array
169169
{
170170
$extra = [];
171171

Definition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Definition
3232
* @param Transition[] $transitions
3333
* @param string|string[]|null $initialPlaces
3434
*/
35-
public function __construct(array $places, array $transitions, string|array $initialPlaces = null, MetadataStoreInterface $metadataStore = null)
35+
public function __construct(array $places, array $transitions, string|array|null $initialPlaces = null, ?MetadataStoreInterface $metadataStore = null)
3636
{
3737
foreach ($places as $place) {
3838
$this->addPlace($place);
@@ -76,7 +76,7 @@ public function getMetadataStore(): MetadataStoreInterface
7676
return $this->metadataStore;
7777
}
7878

79-
private function setInitialPlaces(string|array $places = null): void
79+
private function setInitialPlaces(string|array|null $places = null): void
8080
{
8181
if (1 > \func_num_args()) {
8282
trigger_deprecation('symfony/workflow', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy