mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 04:26:25 +00:00
Eliminate calls to flattenSingleValue() that are no longer required when we're checking for array values as arguments (#2591)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ class Base
|
||||
} catch (Exception $e) {
|
||||
return $e->getMessage();
|
||||
}
|
||||
$minLength = Functions::flattenSingleValue($minLength);
|
||||
|
||||
return self::calculate($number, $radix, $minLength);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user