File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function parseValue($value): \DateTimeInterface
26
26
return $ this ->tryParsingDate ($ value , Error::class);
27
27
}
28
28
29
- public function parseLiteral ($ valueNode , array $ variables = null ): \DateTimeInterface
29
+ public function parseLiteral ($ valueNode , ? array $ variables = null ): \DateTimeInterface
30
30
{
31
31
if (! $ valueNode instanceof StringValueNode) {
32
32
throw new Error (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function parseValue($value)
22
22
return $ this ->decodeJSON ($ value );
23
23
}
24
24
25
- public function parseLiteral ($ valueNode , array $ variables = null )
25
+ public function parseLiteral ($ valueNode , ? array $ variables = null )
26
26
{
27
27
if (! property_exists ($ valueNode , 'value ' )) {
28
28
$ withoutValue = Printer::doPrint ($ valueNode );
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function parseValue($value)
25
25
return $ value ;
26
26
}
27
27
28
- public function parseLiteral ($ valueNode , array $ variables = null )
28
+ public function parseLiteral ($ valueNode , ? array $ variables = null )
29
29
{
30
30
return AST ::valueFromASTUntyped ($ valueNode );
31
31
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function parseValue($value)
34
34
return null ;
35
35
}
36
36
37
- public function parseLiteral ($ valueNode , array $ variables = null )
37
+ public function parseLiteral ($ valueNode , ? array $ variables = null )
38
38
{
39
39
if (! $ valueNode instanceof NullValueNode) {
40
40
throw new Error (self ::ONLY_NULL_IS_ALLOWED );
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function parseValue($value): string
76
76
return $ stringValue ;
77
77
}
78
78
79
- public function parseLiteral ($ valueNode , array $ variables = null ): string
79
+ public function parseLiteral ($ valueNode , ? array $ variables = null ): string
80
80
{
81
81
$ value = Utils::extractStringFromLiteral ($ valueNode );
82
82
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function parseValue($value): string
72
72
return $ stringValue ;
73
73
}
74
74
75
- public function parseLiteral ($ valueNode , array $ variables = null ): string
75
+ public function parseLiteral ($ valueNode , ? array $ variables = null ): string
76
76
{
77
77
$ stringValue = Utils::extractStringFromLiteral ($ valueNode );
78
78
You can’t perform that action at this time.
0 commit comments