← All docs

class_alias() — internals

Compiler internals for class_alias(): lowering path, type checks, and runtime helpers.

class_alias() — internals

Where it lives

Lowering notes

  • Lowers the defensive class_alias() fallback that remains after AOT alias extraction.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function class_alias(string $class, string $alias, bool $autoload = true): bool

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Cross-references