mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 23:36:03 +03: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:
parent
b2a26349d4
commit
037c2748f3
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user