Skip to content

Commit e62e424

Browse files
Merge branch '6.4' into 7.0
* 6.4: Fix implicitly-required parameters 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 [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2 parents 84801bc + 3cd13dc commit e62e424

34 files changed

+60
-60
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: 1 addition & 1 deletion
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);

0 commit comments

Comments
 (0)