From aa5532206f8a8829d469f6cd7ba688888b1e51c9 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 27 Mar 2023 17:35:05 +0200 Subject: [PATCH] Fix message --- src/exception/InvalidSeparatorException.php | 2 +- tests/unit/ParserTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exception/InvalidSeparatorException.php b/src/exception/InvalidSeparatorException.php index 1cfb991..6bdec7a 100644 --- a/src/exception/InvalidSeparatorException.php +++ b/src/exception/InvalidSeparatorException.php @@ -15,6 +15,6 @@ final class InvalidSeparatorException extends InvalidArgumentException implement { public function __construct() { - parent::__construct('Separator must be a one single-byte character'); + parent::__construct('Separator must be a single-byte character'); } } diff --git a/tests/unit/ParserTest.php b/tests/unit/ParserTest.php index 6410c26..64a7431 100644 --- a/tests/unit/ParserTest.php +++ b/tests/unit/ParserTest.php @@ -163,7 +163,7 @@ public function testRejectsInvalidSeparator(): void $parser = new Parser; $this->expectException(InvalidSeparatorException::class); - $this->expectExceptionMessage('Separator must be a one single-byte character'); + $this->expectExceptionMessage('Separator must be a single-byte character'); $parser->setSeparator('..'); }