← All changes
|
includes/Dependencies/PhpParser/Node/Expr/ArrayItem.php
+1
-1
4.4.1
→
4.9.3
View file →
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | * @param null|Expr $key Key |
| 21 | 21 | * @param bool $byRef Whether to assign by reference |
| 22 | 22 | * @param array $attributes Additional attributes |
| 23 | 23 | */ |
| 24 | - public function __construct(Expr $value, Expr $key = null, $byRef = false, array $attributes = array()) { | |
| 24 | + public function __construct(Expr $value, ?Expr $key = null, $byRef = false, array $attributes = array()) { | |
| 25 | 25 | parent::__construct($attributes); |
| 26 | 26 | $this->key = $key; |
| 27 | 27 | $this->value = $value; |
| 28 | 28 | $this->byRef = $byRef; |