Skip to content

Conversation

@sumaiazaman
Copy link
Contributor

This PR removes an unused exception variable in a catch block that only contains a comment.

Changes:

  • Removes unused $e parameter from catch block in Job::fail() method
  • Uses PHP 8.0+ syntax to omit the variable name when the caught exception is not used

Benefits:

Testing:

  • Existing tests continue to pass
  • No functional changes to exception handling behavior

Remove unused exception variable in catch block that only contains
a comment. Uses PHP 8.0+ syntax to omit the variable name when
the caught exception is not used within the catch block.
@sumaiazaman sumaiazaman changed the title Remove unused catch variable in Job::fail() [12.x] Remove unused catch variable in Job::fail() Nov 3, 2025
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.

2 participants