Skip to content

Fix: Normalize the error paths onto real Response objects#276

Merged
techmahedy merged 2 commits into
doppar:3.xfrom
techmahedy:techmahedy-3.x
May 6, 2026
Merged

Fix: Normalize the error paths onto real Response objects#276
techmahedy merged 2 commits into
doppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

All of abort(), validation JSON errors, and JsonErrorRenderer should stop echo/include/exit-ing directly and instead return or throw something that becomes a proper Response.

The main hotspots are RequestAbortion.php, Rule.php, and JsonErrorRenderer.php. Now all the error handler usages proper response send before terminating the request lifecycle.

@techmahedy techmahedy merged commit 8df5dec into doppar:3.x May 6, 2026
25 checks passed
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