We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5212318 + 1900618 commit 5253e08Copy full SHA for 5253e08
lib/Resque/Job.php
@@ -190,13 +190,13 @@ public function perform()
190
Resque_Event::trigger('beforePerform', $this);
191
192
$instance = $this->getInstance();
193
- if(method_exists($instance, 'setUp')) {
+ if(is_callable([$instance, 'setUp'])) {
194
$instance->setUp();
195
}
196
197
$result = $instance->perform();
198
199
- if(method_exists($instance, 'tearDown')) {
+ if(is_callable([$instance, 'tearDown'])) {
200
$instance->tearDown();
201
202
0 commit comments