mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Exceptions > UnknownTypeException > remove duplicated and unnecessary sprintf() call > sprintf(sprintf())
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user