Skip to content

Commit 2a1a1d6

Browse files
committed
[Console] Add default parameter (true) for Command::setHidden()
1 parent af4035d commit 2a1a1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ public function getName()
453453
*
454454
* @return Command The current instance
455455
*/
456-
public function setHidden(bool $hidden)
456+
public function setHidden(bool $hidden = true)
457457
{
458458
$this->hidden = $hidden;
459459

0 commit comments

Comments
 (0)