Eliminate calls to flattenSingleValue() that are no longer required when we're checking for array values as arguments (#2591)

This commit is contained in:
Mark Baker 2022-02-14 23:11:53 +01:00 committed by GitHub
parent 7e996a7c98
commit 70c12d2b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class Arabic
}
// An empty string should return 0
$roman = substr(trim(strtoupper((string) Functions::flattenSingleValue($roman))), 0, 255);
$roman = substr(trim(strtoupper((string) $roman)), 0, 255);
if ($roman === '') {
return 0;
}

View File

@ -41,7 +41,6 @@ class Base
} catch (Exception $e) {
return $e->getMessage();
}
$minLength = Functions::flattenSingleValue($minLength);
return self::calculate($number, $radix, $minLength);
}