Arquivos
hhvm/hphp/test/vm/reflection2.php.exp
T
drussi bf740ca345 expose return type constraint (aka hint) from the AST to the runtime and reflection
This is the first part of the work to expose type constraint and generic all the way to reflection. This first DIFF exposes the return type with generic types coming next.
2013-04-09 15:31:40 -07:00

267 linhas
4.8 KiB
Plaintext

array(6) {
[0]=>
object(ReflectionMethod) (3) {
["name"]=>
string(17) "my_other_override"
["class"]=>
string(8) "my_child"
["info"]=>
array(14) {
["name"]=>
string(17) "my_other_override"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(8) "my_child"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(20)
["line2"]=>
int(20)
}
}
[1]=>
object(ReflectionMethod) (3) {
["name"]=>
string(15) "my_child_method"
["class"]=>
string(8) "my_child"
["info"]=>
array(14) {
["name"]=>
string(15) "my_child_method"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(8) "my_child"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(21)
["line2"]=>
int(21)
}
}
[2]=>
object(ReflectionMethod) (3) {
["name"]=>
string(9) "my_method"
["class"]=>
string(8) "my_class"
["info"]=>
array(14) {
["name"]=>
string(9) "my_method"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(8) "my_class"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(13)
["line2"]=>
int(13)
}
}
[3]=>
object(ReflectionMethod) (3) {
["name"]=>
string(18) "my_override_method"
["class"]=>
string(8) "my_class"
["info"]=>
array(14) {
["name"]=>
string(18) "my_override_method"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(8) "my_class"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(15)
["line2"]=>
int(15)
}
}
[4]=>
object(ReflectionMethod) (3) {
["name"]=>
string(15) "my_trait_method"
["class"]=>
string(8) "my_class"
["info"]=>
array(14) {
["name"]=>
string(15) "my_trait_method"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(8) "my_class"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(4)
["line2"]=>
int(4)
}
}
[5]=>
object(ReflectionMethod) (3) {
["name"]=>
string(14) "my_base_method"
["class"]=>
string(7) "my_base"
["info"]=>
array(14) {
["name"]=>
string(14) "my_base_method"
["access"]=>
string(6) "public"
["modifiers"]=>
int(256)
["class"]=>
string(7) "my_base"
["return_type"]=>
bool(false)
["doc"]=>
bool(false)
["params"]=>
array(0) {
}
["static_variables"]=>
array(0) {
}
["attributes"]=>
array(0) {
}
["is_closure"]=>
bool(false)
["is_generator"]=>
bool(false)
["file"]=>
"hphp/test/vm/reflection2.php"
["line1"]=>
int(8)
["line2"]=>
int(8)
}
}
}
object(ReflectionParameter) (1) {
["info"]=>
array(6) {
["index"]=>
int(0)
["name"]=>
string(1) "c"
["type"]=>
string(7) "MyClass"
["function"]=>
string(1) "f"
["class"]=>
string(1) "I"
["attributes"]=>
array(0) {
}
}
}