From 085af4eae00337ff52176e607fa106507354dedd Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" <51850998+paulbalandan@users.noreply.github.com> Date: Tue, 14 Dec 2021 13:44:19 +0800 Subject: [PATCH] Fix exception message formatting --- src/Tokenizer/Tokens.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tokenizer/Tokens.php b/src/Tokenizer/Tokens.php index ac64fc03ca0..13b4aa44798 100644 --- a/src/Tokenizer/Tokens.php +++ b/src/Tokenizer/Tokens.php @@ -870,7 +870,7 @@ public function insertSlices(array $slices): void // that way we get around additional overhead this class adds with overridden offset* methods. foreach ($slices as $index => $slice) { if (!\is_int($index) || $index < 0) { - throw new \OutOfBoundsException(sprintf('Invalid index "%s"', $index)); + throw new \OutOfBoundsException(sprintf('Invalid index "%s".', $index)); } $slice = \is_array($slice) || $slice instanceof self ? $slice : [$slice];