github nikic/PHP-Parser v1.1.0
PHP-Parser 1.1.0

latest releases: v4.19.1, v4.19.0, v5.0.2...
9 years ago
  • Methods that do not specify an explicit visibility (e.g. function method()) will now have the MODIFIER_PUBLIC flag set. This also means that their isPublic() method will return true.
  • Declaring a property as abstract or final is now an error.
  • The Lexer and Lexer\Emulative classes now accept an $options array in their constructors. Currently only the usedAttributes option is supported, which determines which attributes will be added to AST nodes. In particular it is now possible to add information on the token and file positions corresponding to a node. For more details see the Lexer component documentation.
  • Node visitors can now return NodeTraverser::DONT_TRAVERSE_CHILDREN from enterNode() in order to skip all children of the current node, for all visitors.
  • Added builders for traits and namespaces.
  • The class, interface, trait, function, method and property builders now support adding doc comments using the setDocComment() method.
  • Added support for fully-qualified and namespace-relative names in builders. No longer allow use of name component arrays.
  • Do not add documentation and tests to distribution archive files.

Don't miss a new PHP-Parser release

NewReleases is sending notifications on new releases.