summaryrefslogtreecommitdiffstats
path: root/php-ringcentral-psr7-php8.patch
diff options
context:
space:
mode:
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
+ ));