Fedora 21 Update: php-PHPParser-1.3.0-1.fc21

updates at fedoraproject.org updates at fedoraproject.org
Thu Jun 4 20:16:48 UTC 2015


--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2015-8802
2015-05-25 20:40:27
--------------------------------------------------------------------------------

Name        : php-PHPParser
Product     : Fedora 21
Version     : 1.3.0
Release     : 1.fc21
URL         : https://github.com/nikic/PHP-Parser
Summary     : A PHP parser written in PHP
Description :
A PHP parser written in PHP to simplify static analysis and code manipulation.

--------------------------------------------------------------------------------
Update Information:

**PHP-Parser 1.3.0**

**Added**
* Errors can now store the attributes of the node/token where the error occurred. Previously only the start line was stored.
* If file positions are enabled in the lexer, errors can now provide column information if it is available. See documentation.
* The parser now provides an experimental error recovery mode, which can be enabled by disabling the throwOnError parser option. In this mode the parser will try to construct a partial AST even if the code is not valid PHP. See documentation.
* Added support for PHP 7 yield from expression. It is represented by Expr\YieldFrom.
* Added support for PHP 7 anonymous classes. These are represented by ordinary Stmt\Class_ nodes with the name set to null. Furthermore this implies that Expr\New_ can now contain a Stmt\Class_ in its class subnode.

**Fixed**
* Fixed registration of PHP 7 aliases, for the case where the old name was used before the new name.
* Fixed handling of precedence when pretty-printing print expressions.
* Floating point numbers are now pretty-printed with a higher precision.
* Checks for special class names like self are now case-insensitive.


**PHP-Parser 1.2.2**
* The NameResolver now resolves parameter type hints when entering the function/method/closure node. As such other visitors running after it will be able to make use of the resolved names at that point already.
* The autoloader no longer sets the unserialize_callback_func ini option on registration - this is not necessary and may cause issues when running PhpUnit tests with process isolation.

**PHP-Parser 1.2.1**
* This release fixes the registration of the class aliases introduced in version 1.2.0. Previously the old class names could not be used in instanceof checks under some circumstances.

**PHP-Parser 1.2.0**

**Changed**
* To ensure compatibility with PHP 7, some node classes have been renamed:
* The previous class names are still supported as aliases. However it is strongly encouraged to use the new names in order to make your code compatible with PHP 7.
*  Subnodes are now stored using real properties instead of an array. This improves performance and memory usage of the initial parse and subsequent node tree operations. The NodeAbstract class still supports the old way of specifying subnodes, however this is deprecated. In any case properties that are assigned to a node after creation will no longer be considered as subnodes.
*  Methods and property declarations will no longer set the Stmt\Class_::MODIFIER_PUBLIC flag if no visibility is explicitly given. However the isPublic() method will continue to return true. This allows you to distinguish whether a method/property is explicitly or implicitly public and control the pretty printer output more precisely.
* The Stmt\Class_, Stmt\Interface_ and Stmt\Trait_ nodes now inherit from Stmt\ClassLike, which provides a getMethods() method. Previously this method was only available on Stmt\Class_.
* Support including the bootstrap.php file multiple times.
* Make documentation and tests part of the release tarball again.
* Improve support for HHVM and PHP 7.

**Added**
* Added support for PHP 7 return type declarations. This adds an additional returnType subnode to Stmt\Function_, Stmt\ClassMethod and Expr\Closure.
* Added support for the PHP 7 null coalesce operator ??. The operator is represented by Expr\BinaryOp\Coalesce.
* Added support for the PHP 7 spaceship operator <=>. The operator is represented by Expr\BinaryOp\Spaceship.
* Added use builder.
* Added global namespace support to the namespace builder.
* Added a constructor flag to NodeTraverser, which disables cloning of nodes


--------------------------------------------------------------------------------
ChangeLog:

* Wed May 20 2015 Remi Collet <remi at fedoraproject.org> - 1.3.0-1
- update to 1.3.0
* Wed Feb 25 2015 Remi Collet <remi at fedoraproject.org> - 1.1.0-1
- update to 1.1.0
- use git snapshot as upstream tarball don't provide the test suite
- provide the php-parse command
--------------------------------------------------------------------------------
References:

  [ 1 ] Bug #1208927 - php-PHPParser-v1.3.0 is available
        https://bugzilla.redhat.com/show_bug.cgi?id=1208927
--------------------------------------------------------------------------------

This update can be installed with the "yum" update program.  Use
su -c 'yum update php-PHPParser' at the command line.
For more information, refer to "Managing Software with yum",
available at http://docs.fedoraproject.org/yum/.

All packages are signed with the Fedora Project GPG key.  More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------


More information about the package-announce mailing list