Skip to content

Not compatible with psr/http-message version 2.0 #91

Description

@C0d3Br3aker

After upgrading "psr/http-message" from version 1.1 to 2.0 this bundle can't be used anymore and you get the following error log:

php.CRITICAL: Fatal Compile Error: Declaration of WoohooLabs\Yin\JsonApi\Request\AbstractRequest::withCookieParams(array $cookies) must be compatible with Psr\Http\Message\ServerRequestInterface::withCookieParams(array $cookies): Psr\Http\Message\ServerRequestInterface {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Declaration of WoohooLabs\\Yin\\JsonApi\\Request\\AbstractRequest::withCookieParams(array $cookies) must be compatible with Psr\\Http\\Message\\ServerRequestInterface::withCookieParams(array $cookies): Psr\\Http\\Message\\ServerRequestInterface at /var/www/symfony/vendor/woohoolabs/yin/src/JsonApi/Request/AbstractRequest.php:212)"} []
request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Declaration of WoohooLabs\Yin\JsonApi\Request\AbstractRequest::withCookieParams(array $cookies) must be compatible with Psr\Http\Message\ServerRequestInterface::withCookieParams(array $cookies): Psr\Http\Message\ServerRequestInterface" at /var/www/symfony/vendor/woohoolabs/yin/src/JsonApi/Request/AbstractRequest.php line 212 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Declaration of WoohooLabs\\Yin\\JsonApi\\Request\\AbstractRequest::withCookieParams(array $cookies) must be compatible with Psr\\Http\\Message\\ServerRequestInterface::withCookieParams(array $cookies): Psr\\Http\\Message\\ServerRequestInterface at /var/www/symfony/vendor/woohoolabs/yin/src/JsonApi/Request/AbstractRequest.php:212)"} []
php.CRITICAL: Uncaught Error: Class "WoohooLabs\Yin\JsonApi\Request\JsonApiRequest" not found {"exception":"[object] (Error(code: 0): Class \"WoohooLabs\\Yin\\JsonApi\\Request\\JsonApiRequest\" not found at /var/www/symfony/vendor/paknahad/jsonapi-bundle/src/Factory/JsonApiFactory.php:43)"} []
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions