Skip to content

Commit

Permalink
PHP8 support (#29)
Browse files Browse the repository at this point in the history
* PHP8 support

* Align assignments
  • Loading branch information
AydinHassan committed Oct 24, 2020
1 parent a43b647 commit c6e0096
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Parser/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function all()
return [];
}

return call_user_func_array('array_merge', $items);
return call_user_func_array('array_merge', array_values($items));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Parser/Token/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct($name = null, array $options = [])

$this->name = $name;
$this->rule = isset($options['rule']) ? $options['rule'] : new Rule();
$this->options &= $options;
$this->options = $options;

$this->id = ++self::$_id;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"require": {
"php": "^7.1.3"
"php": "^7.1.3 | ^8.0"
},
"require-dev": {
"ext-json": "*",
Expand Down

0 comments on commit c6e0096

Please sign in to comment.