mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-08-26 05:10:17 +02:00
Merge pull request #164 from iambrosi/no-is_a
Use instanceof instead of method is_a
This commit is contained in:
commit
683d11ac90
@ -59,7 +59,7 @@ class Factory
|
||||
|
||||
$instance = new $className($taskConfig, $inRollback, $stage, $taskParameters);
|
||||
|
||||
if (!is_a($instance, 'Mage\Task\AbstractTask')) {
|
||||
if (!($instance instanceof AbstractTask)) {
|
||||
throw new Exception('The Task ' . $taskName . ' must be an instance of Mage\Task\AbstractTask.');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user