Fix issues

This commit is contained in:
Robin van der Vliet
2025-11-10 21:54:17 +01:00
parent e9ec166018
commit 92a3bb8a9e
2 changed files with 8 additions and 8 deletions
@@ -15,16 +15,16 @@ class Info
* @param mixed $typeText String specifying the type of information to be returned
* @param ?Cell $cell Cell from which spreadsheet information is retrieved
*
* @return string The requested information about the current operating environment
* @return string|int The requested information about the current operating environment
*/
public static function getInfo(mixed $typeText = '', ?Cell $cell = null): string
public static function getInfo(mixed $typeText = '', ?Cell $cell = null): string|int
{
return match (is_string($typeText) ? strtolower($typeText) : $typeText) {
'numfile' => $cell?->getWorksheetOrNull()?->getParent()?->getSheetCount() ?? 1,
'osversion' => 'PHP ' . phpversion(),
'recalc' => 'Automatic',
'system' => 'PHP',
default => ExcelError::VALUE(),
'numfile' => $cell?->getWorksheetOrNull()?->getParent()?->getSheetCount() ?? 1,
'osversion' => 'PHP ' . PHP_VERSION,
'recalc' => 'Automatic',
'system' => 'PHP',
default => ExcelError::VALUE(),
};
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ return [
],
[
'osversion',
'PHP ' . phpversion(),
'PHP ' . PHP_VERSION,
],
[
'recalc',