← All docs

cal_info() — internals

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

cal_info() — internals

Where it lives

Lowering notes

  • Rewritten by the name resolver into a constructor or method call on the corresponding builtin class before type checking.

Semantic descriptor

Shared contract without a registry semantic descriptor.

EIR and runtime boundary

No registry-backed typed runtime target applies.

Signature summary

function cal_info(int $calendar = -1): array

What the type checker enforces

  • Arity: takes 0–1 arguments (1 optional).

Eval interpreter (magician)

Dispatched as a procedural date/time alias by crates/elephc-magician/src/interpreter/builtins/time/aliases.rs.

Cross-references