init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
17
lib/PhpSpreadsheet/Calculation/Statistical/MaxMinBase.php
Normal file
17
lib/PhpSpreadsheet/Calculation/Statistical/MaxMinBase.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Calculation\Statistical;
|
||||
|
||||
abstract class MaxMinBase
|
||||
{
|
||||
protected static function datatypeAdjustmentAllowStrings(mixed $value): mixed
|
||||
{
|
||||
if (is_bool($value)) {
|
||||
return (int) $value;
|
||||
} elseif (is_string($value)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue