Call to a member function promise() on null
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 731
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
It's a weird problem
Call to a member function promise() on null in /home/web/apps/t-task-wind/releases/147/vendor/amphp/http-client/src/Connection/Internal/Http2ConnectionProcessor.php:1167
But I see there is check on the code https://github.com/amphp/http-client/blob/4.x/src/Connection/Internal/Http2ConnectionProcessor.php#L1165
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 by reading src/Connection/Internal/Http2ConnectionProcessor.php around lines 1165-1167, where the reported null promise() call occurs, and trace how that check can be reached. Reproduce the failure if possible, then verify that the null path is handled and covered by a regression case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100