Merge pull request #60 from Synchro/develop

Change use of is_a() to use instanceof
This commit is contained in:
Mark Baker 2012-10-18 09:04:11 -07:00
commit 515efef4fc
1 changed files with 1 additions and 1 deletions

View File

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