mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-20 15:16:36 +00:00
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.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user