123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- Invalid class name
- -----
- <?php class self {}
- -----
- Cannot use 'self' as class name as it is reserved from 1:13 to 1:16
- array(
- 0: Stmt_Class(
- flags: 0
- name: self
- extends: null
- implements: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class PARENT {}
- -----
- Cannot use 'PARENT' as class name as it is reserved from 1:13 to 1:18
- array(
- 0: Stmt_Class(
- flags: 0
- name: PARENT
- extends: null
- implements: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class static {}
- -----
- Syntax error, unexpected T_STATIC, expecting T_STRING from 1:13 to 1:18
- array(
- )
- -----
- <?php class A extends self {}
- -----
- Cannot use 'self' as class name as it is reserved from 1:23 to 1:26
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: Name(
- parts: array(
- 0: self
- )
- )
- implements: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class A extends PARENT {}
- -----
- Cannot use 'PARENT' as class name as it is reserved from 1:23 to 1:28
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: Name(
- parts: array(
- 0: PARENT
- )
- )
- implements: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class A extends static {}
- -----
- Cannot use 'static' as class name as it is reserved from 1:23 to 1:28
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: Name(
- parts: array(
- 0: static
- )
- )
- implements: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class A implements self {}
- -----
- Cannot use 'self' as interface name as it is reserved from 1:26 to 1:29
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: null
- implements: array(
- 0: Name(
- parts: array(
- 0: self
- )
- )
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class A implements PARENT {}
- -----
- Cannot use 'PARENT' as interface name as it is reserved from 1:26 to 1:31
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: null
- implements: array(
- 0: Name(
- parts: array(
- 0: PARENT
- )
- )
- )
- stmts: array(
- )
- )
- )
- -----
- <?php class A implements static {}
- -----
- Cannot use 'static' as interface name as it is reserved from 1:26 to 1:31
- array(
- 0: Stmt_Class(
- flags: 0
- name: A
- extends: null
- implements: array(
- 0: Name(
- parts: array(
- 0: static
- )
- )
- )
- stmts: array(
- )
- )
- )
- -----
- <?php interface self {}
- -----
- Cannot use 'self' as class name as it is reserved from 1:17 to 1:20
- array(
- 0: Stmt_Interface(
- name: self
- extends: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php interface PARENT {}
- -----
- Cannot use 'PARENT' as class name as it is reserved from 1:17 to 1:22
- array(
- 0: Stmt_Interface(
- name: PARENT
- extends: array(
- )
- stmts: array(
- )
- )
- )
- -----
- <?php interface static {}
- -----
- Syntax error, unexpected T_STATIC, expecting T_STRING from 1:17 to 1:22
- array(
- )
- -----
- <?php interface A extends self {}
- -----
- Cannot use 'self' as interface name as it is reserved from 1:27 to 1:30
- array(
- 0: Stmt_Interface(
- name: A
- extends: array(
- 0: Name(
- parts: array(
- 0: self
- )
- )
- )
- stmts: array(
- )
- )
- )
- -----
- <?php interface A extends PARENT {}
- -----
- Cannot use 'PARENT' as interface name as it is reserved from 1:27 to 1:32
- array(
- 0: Stmt_Interface(
- name: A
- extends: array(
- 0: Name(
- parts: array(
- 0: PARENT
- )
- )
- )
- stmts: array(
- )
- )
- )
- -----
- <?php interface A extends static {}
- -----
- Cannot use 'static' as interface name as it is reserved from 1:27 to 1:32
- array(
- 0: Stmt_Interface(
- name: A
- extends: array(
- 0: Name(
- parts: array(
- 0: static
- )
- )
- )
- stmts: array(
- )
- )
- )
|