From 037c2748f3bc0db1d721d7f0931dc793eafe0c85 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Thu, 18 Oct 2012 17:11:45 +0300 Subject: [PATCH] Change use of is_a() to use instanceof While is_a() is no longer deprecated, there are bound to be some people using PHP versions that still have it marked as deprecated. This is the only occurrence of is_a in the whole of PHPExcel; everywhere else it's using instanceof, so I figured it would be sensible to make it consistent. --- Classes/PHPExcel/Worksheet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Worksheet.php b/Classes/PHPExcel/Worksheet.php index fff57cd5..00f68fd5 100644 --- a/Classes/PHPExcel/Worksheet.php +++ b/Classes/PHPExcel/Worksheet.php @@ -1513,7 +1513,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable public function duplicateConditionalStyle(array $pCellStyle = null, $pRange = '') { foreach($pCellStyle as $cellStyle) { - if (!is_a($cellStyle,'PHPExcel_Style_Conditional')) { + if (!($cellStyle instanceof PHPExcel_Style_Conditional)) { throw new Exception('Style is not a conditional style'); } }