Skip to content

Commit

Permalink
Merge branch '0.9'
Browse files Browse the repository at this point in the history
Conflicts:
	lib/PhpParser/Template.php
	lib/PhpParser/TemplateLoader.php
  • Loading branch information
nikic committed Mar 27, 2014
2 parents 2605b83 + 8429157 commit 4c06b09
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,8 +4,14 @@ Version 0.9.5-dev
* Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. This also modifies the
corresponding `NodeTraverserInterface`.

* 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
custom error handlers.

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
Expand Down
2 changes: 2 additions & 0 deletions doc/4_Code_generation.markdown
Expand Up @@ -63,6 +63,8 @@ abstract class SomeClass extends SomeOtherClass implements A\Few, Interfaces
Templates
---------

> **DEPRECATED**: This feature is deprecated and will be removed in PHP-Parser 1.0.
Additionally it is possible to generate code from reusable templates.

As an example consider the following template, which defines a general getter/setter skeleton in terms of a property
Expand Down
3 changes: 3 additions & 0 deletions lib/PhpParser/Template.php
Expand Up @@ -2,6 +2,9 @@

namespace PhpParser;

/**
* @deprecated
*/
class Template
{
protected $parser;
Expand Down
3 changes: 3 additions & 0 deletions lib/PhpParser/TemplateLoader.php
Expand Up @@ -2,6 +2,9 @@

namespace PhpParser;

/**
* @deprecated
*/
class TemplateLoader
{
protected $parser;
Expand Down

0 comments on commit 4c06b09

Please sign in to comment.