AutorÃa | Ultima modificación | Ver Log |
<?phpnamespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;use Stringable;class BaseParserClass{protected static function boolean(mixed $value): bool{if (is_object($value)) {$value = ($value instanceof Stringable) ? ((string) $value) : 'true';}if (is_numeric($value)) {return (bool) $value;}return $value === 'true' || $value === 'TRUE';}}