I'm working in converting a classic old PHP script coding into a modern OOP classes so the main class extends the god class like that
require_once('god_class');
class test extends god
{
}
And I've add a new static function like that
require_once('god_class');
class test extends god
{
public $test;
protected static function test ()
{
echo $this->test;
}
}
However I see "Fatal error: Using $this when not in object context in. ........"
But if I removed static I can use $this and I can use any function from the extended class "god" so how I can use the extended functions and the class variables into an static function ?