aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Parsing/Lexer/StateStack.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-09-02 14:42:51 +0200
committerGitHub <noreply@github.com>2023-09-02 14:42:51 +0200
commit5ff5424d8c81c7123d8656a787af2ff85b3dec21 (patch)
tree322929ee01d892bb3c927e7fe1238369c647f820 /inc/Parsing/Lexer/StateStack.php
parent0613df3287b82a98b1e97cf86ed9d4c8fbd16f1c (diff)
parent91560755291852b8302767d454183a7662666f7e (diff)
downloaddokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.tar.gz
dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.zip
Merge pull request #4045 from dokuwiki/autofix
Use Rector to autofix code smell
Diffstat (limited to 'inc/Parsing/Lexer/StateStack.php')
-rw-r--r--inc/Parsing/Lexer/StateStack.php5
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;
}
/**