From 43af96c2ef15c874238ddbb260cec25317f0ef70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= <duesterhus@woltlab.com> Date: Wed, 2 Mar 2022 17:27:22 +0100 Subject: [PATCH] Add missing backslash in front of `pack()` call --- src/Hex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hex.php b/src/Hex.php index 4c27328..65921a6 100644 --- a/src/Hex.php +++ b/src/Hex.php @@ -49,7 +49,7 @@ abstract class Hex implements EncoderInterface $c = $chunk[1] & 0xf; $b = $chunk[1] >> 4; - $hex .= pack( + $hex .= \pack( 'CC', (87 + $b + ((($b - 10) >> 8) & ~38)), (87 + $c + ((($c - 10) >> 8) & ~38)) @@ -77,7 +77,7 @@ abstract class Hex implements EncoderInterface $c = $chunk[1] & 0xf; $b = $chunk[1] >> 4; - $hex .= pack( + $hex .= \pack( 'CC', (55 + $b + ((($b - 10) >> 8) & ~6)), (55 + $c + ((($c - 10) >> 8) & ~6)) -- GitLab