yiisoft / yiisoft/error-handler
Throw friendly exception when callable in `ExceptionResponder` returns non-`ResponseInterface`
Open
Nobody has claimed this yet.
status:ready for adoption
type:enhancement
- Dominant language
- PHP
- Stars
- 22
- Forks
- 18
- Avg merge
- 1h
- Merged PRs (30d)
- 1
Description
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/Middleware/ExceptionResponder.php line 83 and trace how the callable result is handled when it is not a ResponseInterface. Check nearby error-handling code and the relevant test suite for the expected exception style; done when the invalid result produces a friendly exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100