flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.36k stars 835 forks source link

chore: remove unused vars in catch #3839

Closed datlechin closed 1 year ago

datlechin commented 1 year ago

Fixes #0000

Remove unused vars in catch.

As of PHP 8.0.0, the variable name for a caught exception is optional. If not specified, the catch block will still execute but will not have access to the thrown object.

Reviewers should focus on:

Screenshot

QA

Necessity

Confirmed

Required changes: