jasny / jasny/http-message-php-ext

Compatibility with psr 1.2.0

Open
#6 0 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.