mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-26 14:40:32 +00:00
Performance and memory improvements to Excel5 OLE Reader
Temporary fix to XML flush until I get it working correctly Use of PHPExcel_Exception
This commit is contained in:
@@ -53,7 +53,7 @@ class PHPExcel_HashTable
|
||||
* Create a new PHPExcel_HashTable
|
||||
*
|
||||
* @param PHPExcel_IComparable[] $pSource Optional source array to create HashTable from
|
||||
* @throws Exception
|
||||
* @throws PHPExcel_Exception
|
||||
*/
|
||||
public function __construct($pSource = null)
|
||||
{
|
||||
@@ -67,14 +67,14 @@ class PHPExcel_HashTable
|
||||
* Add HashTable items from source
|
||||
*
|
||||
* @param PHPExcel_IComparable[] $pSource Source array to create HashTable from
|
||||
* @throws Exception
|
||||
* @throws PHPExcel_Exception
|
||||
*/
|
||||
public function addFromSource($pSource = null) {
|
||||
// Check if an array was passed
|
||||
if ($pSource == null) {
|
||||
return;
|
||||
} else if (!is_array($pSource)) {
|
||||
throw new Exception('Invalid array parameter passed.');
|
||||
throw new PHPExcel_Exception('Invalid array parameter passed.');
|
||||
}
|
||||
|
||||
foreach ($pSource as $item) {
|
||||
|
||||
Reference in New Issue
Block a user