1
0
Fork 0

Make sure argument of Util::fillString is string

master
Anonymous Contributor 2023-09-09 06:29:52 +02:00
parent 9483889e55
commit 5274f306e3
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ class Util
{
public static function fillString($string, $targetlength)
{
if (gettype($string) != 'string') {
$string = strval($string);
}
while(strlen($string) < $targetlength)
{
$string = "0".$string;