File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ public function execute()
7777 $ this ->doHighlight ($ code );
7878 }
7979
80- protected function doHighlight (string $ code = null )
80+ protected function doHighlight (? string $ code = null )
8181 {
8282 if (!$ this ->output || $ this ->echo ) {
8383 $ this ->app ()->io ()->raw ((new Highlighter )->highlight ($ code , ['lineNo ' => $ this ->lineNo ]));
8484 }
8585 }
8686
87- protected function doExport (string $ code = null )
87+ protected function doExport (? string $ code = null )
8888 {
8989 if (!$ this ->output ) {
9090 return ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function __toString(): string
2323 return $ this ->highlight ();
2424 }
2525
26- public function highlight (string $ code = null , array $ options = []): string
26+ public function highlight (? string $ code = null , array $ options = []): string
2727 {
2828 $ this ->setOptions ($ options );
2929
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ abstract class Pretty
3333 /** @var bool Indicates if it has been already configured. */
3434 protected static $ configured ;
3535
36- public function __construct (string $ code = null )
36+ public function __construct (? string $ code = null )
3737 {
3838 $ this ->code = $ code ?? '' ;
3939 }
@@ -67,7 +67,7 @@ protected function setOptions(array $options)
6767 }
6868 }
6969
70- protected function parse (string $ code = null )
70+ protected function parse (? string $ code = null )
7171 {
7272 $ this ->reset ();
7373
You can’t perform that action at this time.
0 commit comments