smalot / cups-ipp

CUPS Implementation of IPP - PHP Client API
GNU General Public License v2.0
107 stars 56 forks source link

Error upon using demo #24

Open trentwiles opened 3 years ago

trentwiles commented 3 years ago

Ran the last demo, ran into an interesting error:

PHP Fatal 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 in /var/www/html/vendor/smalot/cups-ipp/src/Transport/Client.php on line 22
krutraf commented 3 years ago

i have the same error: Fatal 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 in /var/www/html/vendor/smalot/cups-ipp/src/Transport/Client.php on line 119

installed nginx+php7.4-fpm

pierre-H commented 3 years ago

Same error