summaryrefslogtreecommitdiff
path: root/inc/parser/lexer.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-05-16 11:54:32 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-05-16 11:54:32 +0200
commitdd0d7a4198ffaf4061d322de53ecd9a34eac3500 (patch)
tree9883d43081d67b8886c7076effa313cfec9ff7c0 /inc/parser/lexer.php
parentbff1a21bd9a53ef56d9603457bbb3b6178564791 (diff)
parent79eec18f7ad9126ba147cd13eb2a8d6ee41bf140 (diff)
downloadrpg-dd0d7a4198ffaf4061d322de53ecd9a34eac3500.tar.gz
rpg-dd0d7a4198ffaf4061d322de53ecd9a34eac3500.tar.bz2
Merge pull request #1154 from splitbrain/php7compatibility
Php7compatibility
Diffstat (limited to 'inc/parser/lexer.php')
-rw-r--r--inc/parser/lexer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php
index b46a5f505..17aa6c170 100644
--- a/inc/parser/lexer.php
+++ b/inc/parser/lexer.php
@@ -46,7 +46,7 @@ class Doku_LexerParallelRegex {
* for insensitive.
* @access public
*/
- function Doku_LexerParallelRegex($case) {
+ function __construct($case) {
$this->_case = $case;
$this->_patterns = array();
$this->_labels = array();
@@ -232,7 +232,7 @@ class Doku_LexerStateStack {
* @param string $start Starting state name.
* @access public
*/
- function Doku_LexerStateStack($start) {
+ function __construct($start) {
$this->_stack = array($start);
}
@@ -296,11 +296,11 @@ class Doku_Lexer {
* @param boolean $case True for case sensitive.
* @access public
*/
- function Doku_Lexer(&$parser, $start = "accept", $case = false) {
+ function __construct($parser, $start = "accept", $case = false) {
$this->_case = $case;
/** @var Doku_LexerParallelRegex[] _regexes */
$this->_regexes = array();
- $this->_parser = &$parser;
+ $this->_parser = $parser;
$this->_mode = new Doku_LexerStateStack($start);
$this->_mode_handlers = array();
}