Alter Version
This commit is contained in:
19
vendor/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php
vendored
Normal file
19
vendor/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;
|
||||
|
||||
class BaseParserClass
|
||||
{
|
||||
protected static function boolean($value)
|
||||
{
|
||||
if (is_object($value)) {
|
||||
$value = (string) $value;
|
||||
}
|
||||
|
||||
if (is_numeric($value)) {
|
||||
return (bool) $value;
|
||||
}
|
||||
|
||||
return $value === strtolower('true');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user