Skip to content

PHP-Parser 0.9.5

Compare
Choose a tag to compare
@nikic nikic released this 23 Jul 18:44
· 1374 commits to master since this release

This is the last release on the 0.9 branch. All users on PHP >= 5.3 are encouraged to use version 1.0 instead, which is mostly compatible.

  • 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 in the lexer to reset the error state, will no longer interfere with custom error handlers.
  • Make lexer compatible with xdebug.scream.