Example1:
namespace Inori\Test;
class MainTest
{
}
Example2:
namespace Inori\Test\SubTest;
class SubTest extends ????
{
}
Question: is there a way to quickly go up a level in namespace so SubTest could extend MainTest? something like "../MainTest"? Or am I stuck with \Inori\Test\MainTest?
Relative namespaces aren’t supported. There’s a request for it though:
https://bugs.php.net/bug.php?id=52504
If you import your classes at the top of the file it shouldn’t be that big of a deal.