Added
- Added interface
PhpParser\Node\FunctionLike
, which is implemented byStmt\ClassMethod
,Stmt\Function_
andExpr\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 likestatic
orabstract
. - Properties are now accepted by the trait builder.
- Fixed
__HALT_COMPILER_OFFSET__
support on HHVM.