first timer here.
I’m writing a script to convert namespaces and class names to meet current standards i.e.:
// original
namespace oldNS;
class foo_bar_baz_someClass extends topLvlFile {
// revised
class someClass extends topLvlFile {
namespace oldNS\foo\bar\baz;
The issue I’m having is extending topLvlFile as it is in a higher directory.
Obviously ‘class someClass extends ….\topLvlFile’ will fail.
I’ve been scouring the web trying to find a solution but had little luck.
Any thoughts?
requiere ‘../toplvlfile’;
Someclass extends SomeOtherClass