diff options
Diffstat (limited to 'tests/lang/bug23384.phpt')
-rw-r--r-- | tests/lang/bug23384.phpt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lang/bug23384.phpt b/tests/lang/bug23384.phpt index 2dc3f2308b..220cf9f654 100644 --- a/tests/lang/bug23384.phpt +++ b/tests/lang/bug23384.phpt @@ -5,7 +5,7 @@ Bug #23384 (use of class constants in statics) define('TEN', 10); class Foo { const HUN = 100; - function test($x = Foo::HUN) { + static function test($x = Foo::HUN) { static $arr2 = array(TEN => 'ten'); static $arr = array(Foo::HUN => 'ten'); @@ -18,8 +18,7 @@ class Foo { Foo::test(); echo Foo::HUN."\n"; ?> ---EXPECTF-- -Deprecated: Non-static method Foo::test() should not be called statically in %sbug23384.php on line %d +--EXPECT-- Array ( [100] => ten |