I've a very strange issue. In one class "SMSNotifier" I have
require_once (__DIR__ . "/../InvitationNotifier.php");
[...]
class SMSNotifier extends InvitationNotifier {
[...]
}
this class is included in another script which is called from the cli. When calling this script I get
PHP Fatal error: Class 'InvitationNotifier' not found in [...]/include/classi/notifiche/notifiers/SMSNotifier.php on line 12
The strange thing is that if I replace the require_once with a require I get instead
PHP Fatal error: Cannot redeclare class InvitationNotifier in [...]/include/classi/notifiche/InvitationNotifier.php on line 11
What could be the issue here?
Thank you in advance for any thought. I've ran out of them...