Skip to content

Commit

Permalink
Fix exception message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Dec 14, 2021
1 parent 1656385 commit 085af4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tokenizer/Tokens.php
Expand Up @@ -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];
Expand Down

0 comments on commit 085af4e

Please sign in to comment.