From 0042e47c0b276ca0548d93468b312fca21265780 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 28 Mar 2014 23:59:38 +0000 Subject: [PATCH] GH-347 Using $this in static context in Calculation engine --- Classes/PHPExcel/Calculation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Calculation.php b/Classes/PHPExcel/Calculation.php index 6159be9..c4f2112 100644 --- a/Classes/PHPExcel/Calculation.php +++ b/Classes/PHPExcel/Calculation.php @@ -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; }