@@ -99,8 +99,8 @@ class CliMenu
99
99
public function __construct (
100
100
?string $ title ,
101
101
array $ items ,
102
- Terminal $ terminal = null ,
103
- MenuStyle $ style = null
102
+ ? Terminal $ terminal = null ,
103
+ ? MenuStyle $ style = null
104
104
) {
105
105
$ this ->title = $ title ;
106
106
$ this ->items = $ items ;
@@ -696,7 +696,7 @@ public function getCurrentFrame() : Frame
696
696
return $ this ->currentFrame ;
697
697
}
698
698
699
- public function flash (string $ text , MenuStyle $ style = null ) : Flash
699
+ public function flash (string $ text , ? MenuStyle $ style = null ) : Flash
700
700
{
701
701
$ this ->guardSingleLine ($ text );
702
702
@@ -707,7 +707,7 @@ public function flash(string $text, MenuStyle $style = null) : Flash
707
707
return new Flash ($ this , $ style , $ this ->terminal , $ text );
708
708
}
709
709
710
- public function confirm (string $ text , MenuStyle $ style = null ) : Confirm
710
+ public function confirm (string $ text , ? MenuStyle $ style = null ) : Confirm
711
711
{
712
712
$ this ->guardSingleLine ($ text );
713
713
@@ -718,7 +718,7 @@ public function confirm(string $text, MenuStyle $style = null) : Confirm
718
718
return new Confirm ($ this , $ style , $ this ->terminal , $ text );
719
719
}
720
720
721
- public function cancellableConfirm (string $ text , MenuStyle $ style = null ) : CancellableConfirm
721
+ public function cancellableConfirm (string $ text , ? MenuStyle $ style = null ) : CancellableConfirm
722
722
{
723
723
$ this ->guardSingleLine ($ text );
724
724
@@ -729,7 +729,7 @@ public function cancellableConfirm(string $text, MenuStyle $style = null) : Canc
729
729
return new CancellableConfirm ($ this , $ style , $ this ->terminal , $ text );
730
730
}
731
731
732
- public function askNumber (MenuStyle $ style = null ) : Number
732
+ public function askNumber (? MenuStyle $ style = null ) : Number
733
733
{
734
734
$ this ->assertOpen ();
735
735
@@ -740,7 +740,7 @@ public function askNumber(MenuStyle $style = null) : Number
740
740
return new Number (new InputIO ($ this , $ this ->terminal ), $ style );
741
741
}
742
742
743
- public function askText (MenuStyle $ style = null ) : Text
743
+ public function askText (? MenuStyle $ style = null ) : Text
744
744
{
745
745
$ this ->assertOpen ();
746
746
@@ -751,7 +751,7 @@ public function askText(MenuStyle $style = null) : Text
751
751
return new Text (new InputIO ($ this , $ this ->terminal ), $ style );
752
752
}
753
753
754
- public function askPassword (MenuStyle $ style = null ) : Password
754
+ public function askPassword (? MenuStyle $ style = null ) : Password
755
755
{
756
756
$ this ->assertOpen ();
757
757
0 commit comments