Skip to content

Commit 8645091

Browse files
committed
Use all-array before/after
1 parent 0e8e536 commit 8645091

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/JsPhpize/Nodes/Dyiade.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ class Dyiade extends Value
2626
*/
2727
protected $operator;
2828

29-
public function __construct($operator, Value $leftHand, Value $rightHand, array $before = null, array $after = null)
29+
public function __construct($operator, Value $leftHand, Value $rightHand, array $before = [], array $after = [])
3030
{
3131
$this->operator = $operator;
3232
$this->leftHand = $leftHand;
3333
$this->rightHand = $rightHand;
34-
if ($before !== null) {
35-
$this->before = $before;
36-
}
37-
if ($after !== null) {
38-
$this->after = $after;
39-
}
34+
$this->before = $before;
35+
$this->after = $after;
4036
}
4137

4238
public function getReadVariables()

0 commit comments

Comments
 (0)