public function nonStaticMethod()
 {
     self::nonStaticMethod();
     self::staticMethod();
     parent::nonStaticMethod();
     parent::staticMethod();
     static::nonStaticMethod();
     static::staticMethod();
 }
Esempio n. 2
0
<?php

error_reporting(E_ALL | E_STRICT);
class A
{
    function nonStaticMethod()
    {
    }
}
class B extends A
{
    static function staticMethod()
    {
        parent::nonStaticMethod();
    }
}
B::staticMethod();