Skip to content

[13.x] Remove unused variable in catch()#59689

Merged
taylorotwell merged 2 commits into
laravel:13.xfrom
lucasmichot:13.x-catch-variable
Apr 14, 2026
Merged

[13.x] Remove unused variable in catch()#59689
taylorotwell merged 2 commits into
laravel:13.xfrom
lucasmichot:13.x-catch-variable

Conversation

@lucasmichot

Copy link
Copy Markdown
Contributor

Remove unused variable in catch()


if (isset($e)) {
throw $e;
if ($exception !== null) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also take the opportunity to update this logic

@taylorotwell
taylorotwell merged commit f0ad1b9 into laravel:13.x Apr 14, 2026
52 checks passed
@lucasmichot
lucasmichot deleted the 13.x-catch-variable branch April 16, 2026 10:05
jonagoldman pushed a commit to deplox/laravel-framework that referenced this pull request Apr 30, 2026
* Remove unused variable in catch()

* Fix createPdoResolverWithHosts logic

---------

Co-authored-by: Lucas Michot <lucas@zaiple.com>
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