jasny / jasny/http-message-php-ext
Compatibility with psr 1.2.0
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 21
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
After update to psr 1.2.0
```
$ php -v
Fatal error: Declaration of HttpMessage\Stream::__toString() must be compatible with PsrExt\Http\Message\StreamInterface::__toString(): string in Unknown on line 0
Fatal error: Declaration of HttpMessage\Uri::__toString() must be compatible with PsrExt\Http\Message\UriInterface::__toString(): string in Unknown on line 0
PHP 8.0.13 (cli) (built: Nov 16 2021 18:07:21) ( NTS gcc x86_64 )
```
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the fatal errors with PHP 8.0.13 and psr 1.2.0, then inspect the Stream and Uri declarations reported in the message. The change is done when both extension implementations are compatible with the PSR interfaces and the fatal declaration errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100