diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml index 530fe3caf0..195fae5575 100644 --- a/language/oop5/overloading.xml +++ b/language/oop5/overloading.xml @@ -1,5 +1,5 @@ - + Overloading @@ -168,8 +168,6 @@ class MemberTest { ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_NOTICE); - $tmp = null; - return $tmp; } /** As of PHP 5.1.0 */ @@ -271,29 +269,31 @@ Notice: Undefined property: hidden in on line 64 in on line 28 test('in object context'); +$obj->runTest('in object context'); -MethodTest::test('in static context'); // As of PHP 5.3.0 +MethodTest::runTest('in static context'); // As of PHP 5.3.0 ?> ]]> &example.outputs;