From 95b78baa003d2504e57927b6ec5514b2d9b770b3 Mon Sep 17 00:00:00 2001 From: Denis Smetannikov Date: Sun, 28 Jan 2024 17:29:49 +0400 Subject: [PATCH] Refactor exception message formatting in AbstractConverter (#48) --- src/Converters/AbstractConverter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Converters/AbstractConverter.php b/src/Converters/AbstractConverter.php index 5b536da..d2a69aa 100644 --- a/src/Converters/AbstractConverter.php +++ b/src/Converters/AbstractConverter.php @@ -36,7 +36,7 @@ abstract class AbstractConverter */ public function toInternal(string $source): SourceSuite { - throw new Exception('Method \"' . __METHOD__ . '\" is not available'); + throw new Exception('Method "' . __METHOD__ . '" is not available'); } /** @@ -45,7 +45,7 @@ public function toInternal(string $source): SourceSuite */ public function fromInternal(SourceSuite $sourceSuite): string { - throw new Exception('Method \"' . __METHOD__ . '\" is not available'); + throw new Exception('Method "' . __METHOD__ . '" is not available'); } public function setRootPath(string $rootPath): self