Skip to content

PHP-Parser 1.4.0

Choose a tag to compare

@nikic nikic released this 14 Jul 17:39
· 1273 commits to master since this release

Added

  • Added interface PhpParser\Node\FunctionLike, which is implemented by Stmt\ClassMethod, Stmt\Function_ and Expr\Closure nodes. This interface provides getters for their common subnodes.
  • Added Node\Stmt\ClassLike::getMethod() to look up a specific method on a class/interface/trait.

Fixed

  • Fixed isPublic() return value for implicitly public properties and methods that define an additional modifier like static or abstract.
  • Properties are now accepted by the trait builder.
  • Fixed __HALT_COMPILER_OFFSET__ support on HHVM.