summaryrefslogtreecommitdiffstats
path: root/php-ringcentral-psr7-php8.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-24 08:32:00 +0100
committerRemi Collet <remi@remirepo.net>2021-03-24 08:32:00 +0100
commit83a2e482ec54f306a4e1bb86a42a9231ce79a080 (patch)
tree5c2fcaf1355b87dce89d4cd81d41aa120e380dec /php-ringcentral-psr7-php8.patch
parent36c0b29b76e127695bedc732c6d0a54b309c1535 (diff)
add patch for PHP 8 from https://github.com/ringcentral/psr7/pull/8
Diffstat (limited to 'php-ringcentral-psr7-php8.patch')
-rw-r--r--php-ringcentral-psr7-php8.patch22
1 files changed, 22 insertions, 0 deletions
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 <remi@famillecollet.com>
+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
+ ));