Problem
lib/Compiler.php compileClassLike asserts null === $class->extends and empty implements. Interfaces/traits throw Unsupported class type.
Real PHP apps use simple inheritance:
class BaseController { }
class HomeController extends BaseController { }
Goal
Support single inheritance + interface stubs (vtable or dispatch table) on VM first, then JIT.
Tasks
Acceptance criteria
new HomeController() calls overridden method; parent method callable via parent:: is optional stretch.
Related
Problem
lib/Compiler.phpcompileClassLikeassertsnull === $class->extendsand emptyimplements. Interfaces/traits throwUnsupported class type.Real PHP apps use simple inheritance:
Goal
Support single inheritance + interface stubs (vtable or dispatch table) on VM first, then JIT.
Tasks
extendsparent nameAcceptance criteria
new HomeController()calls overridden method; parent method callable viaparent::is optional stretch.Related