Giter Club home page Giter Club logo

Comments (5)

GrahamCampbell avatar GrahamCampbell commented on May 22, 2024

This is happening because you are using PHP 7.1, which is not supported.

from psr7.

GrahamCampbell avatar GrahamCampbell commented on May 22, 2024

Or at least, you have installed dependencies using composer, using a higher version of PHP, which resulted in you having code loaded that doesn't work properly on PHP 7.1. If you run composer on PHP 7.1 instead (making sure to not ignore the php version constraints), then there is an older version of this package and the psr contracts that will work on PHP 7.1.

from psr7.

MarioWMan avatar MarioWMan commented on May 22, 2024

Hello and thx for the quick response!
Yes I saw it, that it works in PHP 7.4 for example. But my production system is currenty running with PHP 7.1.

But in generally, I guess it should be a clear wholeformed code, so I would make the functions compatible with the interface and I guess no more issues will be happen because of this.

BR, merry xmas and happe new year! ;-)

from psr7.

GrahamCampbell avatar GrahamCampbell commented on May 22, 2024

so I would make the functions compatible with the interface and I guess no more issues will be happen because of this.

The method definitions are compatible of newer PHP, but not PHP 7.1. As such, there are no changes for us to make here. One should always install packages using the same PHP version as the one you want to use in production. This will just be the first of a long line of issues you will encounter when running PHP code intended for PHP 7.4 on PHP 7.1

from psr7.

GrahamCampbell avatar GrahamCampbell commented on May 22, 2024

There is good reason why the methods are not identical with the interfaces - it's because we support two different major versions of the psr interfaces at the same time.

from psr7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.