Hi,
I need to find the root class of a class.
I tried to use AI, but the code does not work.
class BaseClass {}
class Parent extends BaseClass {}
class Child extends Parent {}
I would need something like:
$root = findRoot('Child'); // It should return "BaseClass"