← All docs

tidy_repair_file() - internals

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

tidy_repair_file() - internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected tidy prelude.

Semantic descriptor

Shared contract implemented by an injected elephc-PHP prelude.

EIR and runtime boundary

Implemented by an injected elephc-PHP prelude.

Signature summary

function tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false

What the type checker enforces

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

Eval interpreter (magician)

Cross-references