Based on the response from this question I would expect my code to work but for some reason it is not. I have a simple class that extends a class from my library of classes.
_custom.php
$custom = new MyClass();
class MyClass extends MyAbstractClass{
public function __construct(){
parent::__construct();
}
}
Unfortunately I get this fatal error:
Fatal error: Class 'MyClass' not found in ...
But if I remove the extends MyAbstractClass
then the error goes away. It seems the issue is that when attempting to extend the class, it does not attempt to load MyAbstactClass
which then causes MyClass
to not be found at all.
Any thoughts or suggestions on this?