← All docs

settype() — internals

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

settype() — internals

Where it lives

Lowering notes

  • Lowers settype($local, "type") by mutating the resolved local slot and returning true.

Runtime helpers

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

Signature summary

function settype(mixed $var, string $type): bool

What the type checker enforces

  • Arity: takes exactly 2 arguments.
  • By-reference parameters: $var.

Eval interpreter (magician)

Cross-references