parent::foo();
The :: is not indicating that the call to the parent be made statically. $this is a reserved variable in classes - $parent or $super should have been as well.
And since PHP doesn't have any concept of a class-instance there's nothing mucking that up.
parent::foo();
The :: is not indicating that the call to the parent be made statically. $this is a reserved variable in classes - $parent or $super should have been as well.