MDL-19698 deprecated assign new by ref in simpletest lib
This commit is contained in:
@@ -197,7 +197,7 @@ class SimpleLexer {
|
||||
$this->_case = $case;
|
||||
$this->_regexes = array();
|
||||
$this->_parser = &$parser;
|
||||
$this->_mode = &new SimpleStateStack($start);
|
||||
$this->_mode = new SimpleStateStack($start);
|
||||
$this->_mode_handlers = array($start => $start);
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ class SimpleHtmlSaxParser {
|
||||
* @static
|
||||
*/
|
||||
function &createLexer(&$parser) {
|
||||
$lexer = &new SimpleHtmlLexer($parser);
|
||||
$lexer = new SimpleHtmlLexer($parser);
|
||||
return $lexer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user