← All changes
|
vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
+1
-1
3.2
→
3.5.9
View file →
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | * @param null|Expr $key Key |
| 23 | 23 | * @param bool $byRef Whether to assign by reference |
| 24 | 24 | * @param array $attributes Additional attributes |
| 25 | 25 | */ |
| 26 | - public function __construct(Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) { | |
| 26 | + public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) { | |
| 27 | 27 | $this->attributes = $attributes; |
| 28 | 28 | $this->key = $key; |
| 29 | 29 | $this->value = $value; |
| 30 | 30 | $this->byRef = $byRef; |