diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2015-05-15 19:03:34 +0200 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2015-05-15 19:03:34 +0200 |
commit | 26e22ab837dcabe137a0912fcd2f96d0c35f48c8 (patch) | |
tree | 656deee59b1c046f4ac1cebb4ed2bf7d82d72d48 /_test/tests | |
parent | 11aaacbee50790c2d5a2c10e97307da213d6320d (diff) | |
download | rpg-26e22ab837dcabe137a0912fcd2f96d0c35f48c8.tar.gz rpg-26e22ab837dcabe137a0912fcd2f96d0c35f48c8.tar.bz2 |
Changes for PHP 7 Compatibility
- replace PHP4 style class constructor function names (based on
class name) with php 5 __construct()
Also remove some '&' reference operators used with objects
And add some object type hints
Diffstat (limited to '_test/tests')
-rw-r--r-- | _test/tests/inc/parser/lexer.test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_test/tests/inc/parser/lexer.test.php b/_test/tests/inc/parser/lexer.test.php index d0965a13e..c50665928 100644 --- a/_test/tests/inc/parser/lexer.test.php +++ b/_test/tests/inc/parser/lexer.test.php @@ -146,7 +146,7 @@ class TestOfLexerStateStack extends DokuWikiTest { } class TestParser { - function TestParser() { + function __construct() { } function accept() { } @@ -364,7 +364,7 @@ class TestOfLexerHandlers extends DokuWikiTest { class TestParserByteIndex { - function TestParserByteIndex() {} + function __construct() {} function ignore() {} |