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'); } }