Skip to content

Fix fatal errors: normalise the REPL error spectrum - #7

Merged
MarcelloDuarte merged 1 commit into
mainfrom
fix-fatal-error
Aug 2, 2026
Merged

Fix fatal errors: normalise the REPL error spectrum#7
MarcelloDuarte merged 1 commit into
mainfrom
fix-fatal-error

Conversation

@MarcelloDuarte

Copy link
Copy Markdown
Contributor

Route every evaluation through a single boundary (withEvaluationBoundary) that turns PHP warnings, notices and Throwables into one clean phunkie error — fixing undefined-property access, which previously leaked a raw E_WARNING and a stray null.

Render uncatchable fatals (e.g. "Cannot redeclare" from loading a file twice) as a clean error via a shutdown formatter instead of a raw stack trace, and capture a loaded file's variables into the session.

Route every evaluation through a single boundary (withEvaluationBoundary)
that turns PHP warnings, notices and Throwables into one clean phunkie
error — fixing undefined-property access, which previously leaked a raw
E_WARNING and a stray null.

Render uncatchable fatals (e.g. "Cannot redeclare" from loading a file
twice) as a clean error via a shutdown formatter instead of a raw stack
trace, and capture a loaded file's variables into the session.
@MarcelloDuarte
MarcelloDuarte merged commit 6747b0c into main Aug 2, 2026
9 checks passed
@MarcelloDuarte
MarcelloDuarte deleted the fix-fatal-error branch August 2, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant