Skip to content

Commit de30363

Browse files
committed
minor symfony#42738 [Console] Fix optional before mandatory parameters (derrabus)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] Fix optional before mandatory parameters | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | symfony#42635 (comment) | License | MIT | Doc PR | N/A Commits ------- aec3021 Fix optional before mandatory parameters
2 parents 58c7f74 + aec3021 commit de30363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Event/ConsoleEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ConsoleEvent extends Event
2828
private $input;
2929
private $output;
3030

31-
public function __construct(Command $command = null, InputInterface $input, OutputInterface $output)
31+
public function __construct(?Command $command, InputInterface $input, OutputInterface $output)
3232
{
3333
$this->command = $command;
3434
$this->input = $input;

0 commit comments

Comments
 (0)