Skip to content

Commit 9857ef0

Browse files
authored
Merge pull request #1 from 99designs/fix-optional-argument
Fix up issues with optional argument and redundant initializers
2 parents f6163b2 + 3123d19 commit 9857ef0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Parser/Ast/ArgumentValue/Variable.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ class Variable extends AbstractAst implements ValueInterface
2424
private $type;
2525

2626
/** @var bool */
27-
private $nullable = false;
27+
private $nullable;
2828

2929
/** @var bool */
30-
private $isArray = false;
30+
private $isArray;
3131

3232
/** @var bool */
3333
private $used = false;
3434

3535
/** @var bool */
36-
private $arrayElementNullable = true;
36+
private $arrayElementNullable;
3737

3838
/** @var bool */
3939
private $hasDefaultValue = false;
@@ -49,7 +49,7 @@ class Variable extends AbstractAst implements ValueInterface
4949
* @param bool $arrayElementNullable
5050
* @param Location $location
5151
*/
52-
public function __construct($name, $type, $nullable, $isArray, $arrayElementNullable = true, Location $location)
52+
public function __construct($name, $type, $nullable, $isArray, $arrayElementNullable, Location $location)
5353
{
5454
parent::__construct($location);
5555

0 commit comments

Comments
 (0)