GH-347 Using $this in static context in Calculation engine
This commit is contained in:
parent
e69a5e4d0f
commit
0042e47c0b
|
@ -2640,7 +2640,7 @@ class PHPExcel_Calculation {
|
|||
} // function _showTypeDetails()
|
||||
|
||||
|
||||
private static function _convertMatrixReferences($formula) {
|
||||
private function _convertMatrixReferences($formula) {
|
||||
static $matrixReplaceFrom = array('{',';','}');
|
||||
static $matrixReplaceTo = array('MKMATRIX(MKMATRIX(','),MKMATRIX(','))');
|
||||
|
||||
|
@ -2729,7 +2729,7 @@ class PHPExcel_Calculation {
|
|||
|
||||
// Convert infix to postfix notation
|
||||
private function _parseFormula($formula, PHPExcel_Cell $pCell = NULL) {
|
||||
if (($formula = self::_convertMatrixReferences(trim($formula))) === FALSE) {
|
||||
if (($formula = $this->_convertMatrixReferences(trim($formula))) === FALSE) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue