提交的内容
This commit is contained in:
13
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Cell.php
vendored
Executable file → Normal file
13
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Cell.php
vendored
Executable file → Normal file
@ -71,6 +71,9 @@ class Cell
|
||||
*/
|
||||
private $formulaAttributes;
|
||||
|
||||
/** @var IgnoredErrors */
|
||||
private $ignoredErrors;
|
||||
|
||||
/**
|
||||
* Update the cell into the cell collection.
|
||||
*
|
||||
@ -119,6 +122,7 @@ class Cell
|
||||
} elseif (self::getValueBinder()->bindValue($this, $value) === false) {
|
||||
throw new Exception('Value could not be bound to cell.');
|
||||
}
|
||||
$this->ignoredErrors = new IgnoredErrors();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -391,7 +395,9 @@ class Cell
|
||||
}
|
||||
|
||||
throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(
|
||||
$this->getWorksheet()->getTitle() . '!' . $this->getCoordinate() . ' -> ' . $ex->getMessage()
|
||||
$this->getWorksheet()->getTitle() . '!' . $this->getCoordinate() . ' -> ' . $ex->getMessage(),
|
||||
$ex->getCode(),
|
||||
$ex
|
||||
);
|
||||
}
|
||||
|
||||
@ -794,4 +800,9 @@ class Cell
|
||||
{
|
||||
return (string) $this->getValue();
|
||||
}
|
||||
|
||||
public function getIgnoredErrors(): IgnoredErrors
|
||||
{
|
||||
return $this->ignoredErrors;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user