Exceptions > UnknownTypeException > remove duplicated and unnecessary sprintf() call > sprintf(sprintf())

This commit is contained in:
Meritoo
2018-10-28 00:12:18 +02:00
parent 3c3d1b997e
commit c8fc0b14ff

View File

@@ -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);
}