We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34662b commit ca1650dCopy full SHA for ca1650d
src/PhpSpreadsheet/Shared/JAMA/Matrix.php
@@ -1164,13 +1164,13 @@ public function det()
1164
*/
1165
private function validateExtractedValue($value, bool $validValues): array
1166
{
1167
+ if (!is_numeric($value) && is_array($value)) {
1168
+ $value = Functions::flattenArray($value)[0];
1169
+ }
1170
if ((is_string($value)) && (strlen($value) > 0) && (!is_numeric($value))) {
1171
$value = trim($value, '"');
1172
$validValues &= StringHelper::convertToNumberIfFraction($value);
1173
}
- if (!is_numeric($value) && is_array($value)) {
- $value = Functions::flattenArray($value)[0];
- }
1174
1175
return [$value, $validValues];
1176
0 commit comments