File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 41
41
42
42
// function notation
43
43
'native_function_invocation ' => ['include ' => ['@all ' ]],
44
+ 'nullable_type_declaration ' => [
45
+ 'syntax ' => 'question_mark ' ,
46
+ ],
47
+ 'nullable_type_declaration_for_default_null_value ' => true ,
44
48
45
49
// import
46
50
'no_unused_imports ' => true ,
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public function createShorthands(): void
138
138
*
139
139
* @param OutputFormat|null $oOutputFormat
140
140
*/
141
- public function render (OutputFormat $ oOutputFormat = null ): string
141
+ public function render (? OutputFormat $ oOutputFormat = null ): string
142
142
{
143
143
if ($ oOutputFormat === null ) {
144
144
$ oOutputFormat = new OutputFormat ();
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Parser
21
21
* @param Settings|null $oParserSettings
22
22
* @param int $iLineNo the line number (starting from 1, not from 0)
23
23
*/
24
- public function __construct ($ sText , Settings $ oParserSettings = null , $ iLineNo = 1 )
24
+ public function __construct ($ sText , ? Settings $ oParserSettings = null , $ iLineNo = 1 )
25
25
{
26
26
if ($ oParserSettings === null ) {
27
27
$ oParserSettings = Settings::create ();
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public function getLineNo()
98
98
/**
99
99
* @param Rule|null $oSibling
100
100
*/
101
- public function addRule (Rule $ oRule , Rule $ oSibling = null ): void
101
+ public function addRule (Rule $ oRule , ? Rule $ oSibling = null ): void
102
102
{
103
103
$ sRule = $ oRule ->getRule ();
104
104
if (!isset ($ this ->aRules [$ sRule ])) {
You can’t perform that action at this time.
0 commit comments