diff options
Diffstat (limited to 'inc/Parsing/Lexer/StateStack.php')
-rw-r--r-- | inc/Parsing/Lexer/StateStack.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/Parsing/Lexer/StateStack.php b/inc/Parsing/Lexer/StateStack.php index 325412bb4..a2d72e487 100644 --- a/inc/Parsing/Lexer/StateStack.php +++ b/inc/Parsing/Lexer/StateStack.php @@ -1,4 +1,5 @@ <?php + /** * Lexer adapted from Simple Test: http://sourceforge.net/projects/simpletest/ * For an intro to the Lexer see: @@ -22,7 +23,7 @@ class StateStack */ public function __construct($start) { - $this->stack = array($start); + $this->stack = [$start]; } /** @@ -41,7 +42,7 @@ class StateStack */ public function enter($state) { - array_push($this->stack, $state); + $this->stack[] = $state; } /** |