From c8fc0b14ff7d76014e7364f093108845f7ca3a16 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 28 Oct 2018 00:12:18 +0200 Subject: [PATCH] Exceptions > UnknownTypeException > remove duplicated and unnecessary sprintf() call > sprintf(sprintf()) --- src/Exception/Base/UnknownTypeException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/Base/UnknownTypeException.php b/src/Exception/Base/UnknownTypeException.php index 8377059..43abda2 100644 --- a/src/Exception/Base/UnknownTypeException.php +++ b/src/Exception/Base/UnknownTypeException.php @@ -35,7 +35,7 @@ abstract class UnknownTypeException extends Exception $allTypes = $typeInstance->getAll(); $types = Arrays::values2string($allTypes, '', ', '); - $message = sprintf(sprintf($template, $unknownType, $typeName, $types)); + $message = sprintf($template, $unknownType, $typeName, $types); return new static($message); }