mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +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();
|
$allTypes = $typeInstance->getAll();
|
||||||
$types = Arrays::values2string($allTypes, '', ', ');
|
$types = Arrays::values2string($allTypes, '', ', ');
|
||||||
$message = sprintf(sprintf($template, $unknownType, $typeName, $types));
|
$message = sprintf($template, $unknownType, $typeName, $types);
|
||||||
|
|
||||||
return new static($message);
|
return new static($message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user