Named formula fix for empty formula value
This commit is contained in:
parent
f1b63b7984
commit
65837daa98
|
|
@ -63,7 +63,7 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"dompdf/dompdf": "^0.8.5",
|
"dompdf/dompdf": "^0.8.5",
|
||||||
"friendsofphp/php-cs-fixer": "^2.16",
|
"friendsofphp/php-cs-fixer": "^2.16||^2.18",
|
||||||
"jpgraph/jpgraph": "^4.0",
|
"jpgraph/jpgraph": "^4.0",
|
||||||
"mpdf/mpdf": "^8.0",
|
"mpdf/mpdf": "^8.0",
|
||||||
"phpcompatibility/php-compatibility": "^9.3",
|
"phpcompatibility/php-compatibility": "^9.3",
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class NamedFormula extends DefinedName
|
||||||
?Worksheet $scope = null
|
?Worksheet $scope = null
|
||||||
) {
|
) {
|
||||||
// Validate data
|
// Validate data
|
||||||
if (empty($formula)) {
|
if (!isset($formula)) {
|
||||||
throw new Exception('You must specify a Formula value for a Named Formula');
|
throw new Exception('You must specify a Formula value for a Named Formula');
|
||||||
}
|
}
|
||||||
parent::__construct($name, $worksheet, $formula, $localOnly, $scope);
|
parent::__construct($name, $worksheet, $formula, $localOnly, $scope);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue