Skip to content

Commit

Permalink
Merge 'bendmorris/patch-1' into old-pulls
Browse files Browse the repository at this point in the history
  • Loading branch information
danhunsaker committed Dec 11, 2018
2 parents 5212318 + 1900618 commit 5253e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Resque/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ public function perform()
Resque_Event::trigger('beforePerform', $this);

$instance = $this->getInstance();
if(method_exists($instance, 'setUp')) {
if(is_callable([$instance, 'setUp'])) {
$instance->setUp();
}

$result = $instance->perform();

if(method_exists($instance, 'tearDown')) {
if(is_callable([$instance, 'tearDown'])) {
$instance->tearDown();
}

Expand Down

0 comments on commit 5253e08

Please sign in to comment.