mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-12 09:29:47 +01:00
18129480ae
Type makes it sound like a type-hint, and on a number of other nodes $type is used for exactly that. Use $flags to hold modifiers instead.
36 lines
653 B
Plaintext
36 lines
653 B
Plaintext
Interface
|
|
-----
|
|
<?php
|
|
|
|
interface A extends C, D {
|
|
public function a();
|
|
}
|
|
-----
|
|
array(
|
|
0: Stmt_Interface(
|
|
name: A
|
|
extends: array(
|
|
0: Name(
|
|
parts: array(
|
|
0: C
|
|
)
|
|
)
|
|
1: Name(
|
|
parts: array(
|
|
0: D
|
|
)
|
|
)
|
|
)
|
|
stmts: array(
|
|
0: Stmt_ClassMethod(
|
|
flags: 1
|
|
byRef: false
|
|
name: a
|
|
params: array(
|
|
)
|
|
returnType: null
|
|
stmts: null
|
|
)
|
|
)
|
|
)
|
|
) |