Situation:
Class A{
public function F(){
var_dump($this);
}
}
A::F();
When doing this I get PHP Fatal error:Uncaught Error: Using $this when not in object context.
- Shouldn't I get a NULL or something, instead of the error?
- How do I check (in PHP 7.2!!!) if in object context?
Thx!