Skip to content

Declaration of Smalot\Cups\Transport\Client::sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface #29

Open
@cjprinse

Description

After update from 0.4 to 0.5 I get this error:

"Declaration of Smalot\Cups\Transport\Client::sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface"

This is because of version constraints of dependencies has been removed

  - Upgrading php-http/promise (v1.0.0 => 1.1.0): Extracting archive
  - Upgrading php-http/httplug (v1.1.0 => 2.2.0): Extracting archive
  - Upgrading php-http/socket-client (v1.4.1 => 2.1.0): Extracting archive
  - Upgrading php-http/message (1.8.0 => 1.11.1): Extracting archive
  - Upgrading php-http/client-common (1.10.0 => 2.4.0): Extracting archive
  - Upgrading smalot/cups-ipp (v0.4 => v0.5): Extracting archive

php-http/httplug ^2.0 introduces a new interface for ClientInterface

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