1
0
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:
Andrea Faulds
2014-12-27 17:47:33 +00:00
parent c3c0f531a2
commit 75a225d0d5
14 changed files with 134 additions and 65 deletions
@@ -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
}
"