summaryrefslogtreecommitdiffstats
path: root/php-ringcentral-psr7-php8.patch
blob: 5c59740160ded1d32f0379de1f2b3e2062e51ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
             ));