From 83a2e482ec54f306a4e1bb86a42a9231ce79a080 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Mar 2021 08:32:00 +0100 Subject: add patch for PHP 8 from https://github.com/ringcentral/psr7/pull/8 --- php-ringcentral-psr7-php8.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 php-ringcentral-psr7-php8.patch (limited to 'php-ringcentral-psr7-php8.patch') diff --git a/php-ringcentral-psr7-php8.patch b/php-ringcentral-psr7-php8.patch new file mode 100644 index 0000000..5c59740 --- /dev/null +++ b/php-ringcentral-psr7-php8.patch @@ -0,0 +1,22 @@ +From 71d80f11a91fcbe446f87351b67a9f42103d2dd6 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 24 Mar 2021 08:28:45 +0100 +Subject: [PATCH] Fix sprintf format + +--- + src/LimitStream.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/LimitStream.php b/src/LimitStream.php +index 57eeca9..9df22b3 100644 +--- a/src/LimitStream.php ++++ b/src/LimitStream.php +@@ -71,7 +71,7 @@ public function seek($offset, $whence = SEEK_SET) + { + if ($whence !== SEEK_SET || $offset < 0) { + throw new \RuntimeException(sprintf( +- 'Cannot seek to offset % with whence %s', ++ 'Cannot seek to offset %d with whence %s', + $offset, + $whence + )); -- cgit