mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
Do not make scalar type hints reserved words, merely reserve class name
This commit is contained in:
@@ -36,7 +36,7 @@ class TestClass
|
||||
class DerivedClass extends TestClass {}
|
||||
|
||||
interface TestInterface {
|
||||
public function inter();
|
||||
public function int();
|
||||
}
|
||||
|
||||
reflectMethod("DerivedClass", "foo");
|
||||
@@ -44,7 +44,7 @@ reflectMethod("TestClass", "stat");
|
||||
reflectMethod("TestClass", "priv");
|
||||
reflectMethod("TestClass", "prot");
|
||||
reflectMethod("DerivedClass", "prot");
|
||||
reflectMethod("TestInterface", "inter");
|
||||
reflectMethod("TestInterface", "int");
|
||||
reflectMethod("ReflectionProperty", "__construct");
|
||||
reflectMethod("TestClass", "__destruct");
|
||||
|
||||
@@ -131,16 +131,16 @@ string(%d) "Method [ <user, inherits TestClass> protected method prot ] {
|
||||
|
||||
**********************************
|
||||
**********************************
|
||||
Reflecting on method TestInterface::inter()
|
||||
Reflecting on method TestInterface::int()
|
||||
|
||||
__toString():
|
||||
string(%d) "Method [ <user> abstract public method inter ] {
|
||||
string(%d) "Method [ <user> abstract public method int ] {
|
||||
@@ %s 36 - 36
|
||||
}
|
||||
"
|
||||
|
||||
export():
|
||||
string(%d) "Method [ <user> abstract public method inter ] {
|
||||
string(%d) "Method [ <user> abstract public method int ] {
|
||||
@@ %s 36 - 36
|
||||
}
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user