File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ParameterNode implements ResultNode
16
16
/** @var string|null */
17
17
public $ type ;
18
18
19
- /** @var array|mixed|ArrayItemNode|ArrayNode|AssignmentNode|BinaryOperationNode|FunctionCallNode|MethodCallNode|PropertyAccessNode|Scalar\NumberNode|Scalar\StringNode|StaticMethodCallNode|StaticPropertyAccessNode|VariableNode|Node\Arg|null */
19
+ /** @var array|mixed|ArrayItemNode|ArrayNode|AssignmentNode|BinaryOperationNode|FunctionCallNode|MethodCallNode|PropertyAccessNode|Scalar\NumberNode|Scalar\StringNode|StaticMethodCallNode|StaticPropertyAccessNode|VariableNode|Node\Arg|null */
20
20
public $ default ;
21
21
22
22
public function __construct (Node \Param $ node )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function parserNodesToResultNode(array $nodes)
20
20
{
21
21
$ result = [];
22
22
23
- foreach ($ nodes as $ node ) {
23
+ foreach ($ nodes as $ node ) {
24
24
$ result [] = $ this ->parserNodeToResultNode ($ node );
25
25
}
26
26
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
if (! function_exists ('optional ' )) {
4
- function optional ($ value ) {
4
+ function optional ($ value )
5
+ {
5
6
if (! $ value ) {
6
7
return new class {
7
- public function __get ($ name ) {
8
+ public function __get ($ name )
9
+ {
8
10
return null ;
9
11
}
12
+
10
13
public function __call ($ name , $ arguments )
11
14
{
12
15
return null ;
You can’t perform that action at this time.
0 commit comments