Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error handling exception on initialisation #348

Conversation

matt-in-a-hat
Copy link
Contributor

Fixes #316
Work around to not change the method signature (so as to not require a major version change).

Work around to not change the method signature (so as to not require a major version change).
@@ -984,6 +984,10 @@ public function runJob($jobId)
}
} catch (\Throwable $e) {
// PHP 7 Error handling)
if ($job === null) {
// In case job hasn't loaded yet, pass in a dummy (as the error handler expects a QueuedJob)
$job = QueuedJob::singleton();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my review was premature - QueuedJob is an interface, so this won’t work

@GuySartorelli
Copy link
Collaborator

The issue this PR links to was closed as fixed by #374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal error if exception thrown during job initialisation
3 participants