Revert change to NodeTraverserInterface

Only add this method in 1.0, to avoid any BC breaks.
This commit is contained in:
nikic 2014-07-23 20:21:42 +02:00
parent 5960ecfc10
commit 1cecf9efc5
2 changed files with 5 additions and 10 deletions

View File

@ -1,17 +1,19 @@
Version 0.9.5-dev
-----------------
* Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. This also modifies the
corresponding `NodeTraverserInterface`.
* Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. The method was not added
to the corresponding `NodeTraverserInterface` to avoid BC breaks with custom traversers (it is added in version 1.0).
* Deprecated `PHPParser_Template` and `PHPParser_TemplateLoader`. This functionality does not belong in the main project
and - as far as I know - nobody is using it.
* Fix alias resolution in `NameResolver`: Class names are now correctly handled as case-insensitive.
* The undefined variable error, which is used to the lexer to reset the error state, will no longer interfere with
* The undefined variable error, which is used in the lexer to reset the error state, will no longer interfere with
custom error handlers.
* Make lexer compatible with `xdebug.scream`.
Version 0.9.4 (25.08.2013)
--------------------------
* [PHP 5.5] Add support for `ClassName::class`. This is parsed as an `Expr_ClassConstFetch` with `'class'` being the

View File

@ -9,13 +9,6 @@ interface PHPParser_NodeTraverserInterface
*/
function addVisitor(PHPParser_NodeVisitor $visitor);
/**
* Removes an added visitor.
*
* @param PHPParser_NodeVisitor $visitor
*/
function removeVisitor(PHPParser_NodeVisitor $visitor);
/**
* Traverses an array of nodes using the registered visitors.
*