GH-347 Using $this in static context in Calculation engine

This commit is contained in:
Mark Baker 2014-03-28 23:59:38 +00:00
parent e69a5e4d0f
commit 0042e47c0b

View File

@ -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;
}