Skip to content

Commit fccfdda

Browse files
committed
Fix example
1 parent 6f5c135 commit fccfdda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/Symfony73/Rector/Class_/InvokableCommandInputAttributeRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ final class SomeCommand
9797
public function __invoke(
9898
#[Argument(name: 'argument', description: 'Argument description')]
9999
string $argument,
100-
#[Option]
101-
bool $option = false,
100+
#[Option(name: 'option', shortcut: 'o', mode: Option::VALUE_NONE, description: 'Option description')]
101+
$option,
102102
) {
103103
$someArgument = $argument;
104104
$someOption = $option;

0 commit comments

Comments
 (0)