Historically, ast\Node\Decl was a subclass of ast\Node, but in the latest AST parsing versions, everything is combined.
Alternately, php-ast could add an attributes array property to which a field endLineno could be added in AST versions exceeding some minimum value (and stop setting endLineno in older AST versions)
Historically,
ast\Node\Declwas a subclass ofast\Node, but in the latest AST parsing versions, everything is combined.Alternately, php-ast could add an
attributesarray property to which a fieldendLinenocould be added in AST versions exceeding some minimum value (and stop setting endLineno in older AST versions)