Run Rector on your code to see what it can do for you:
try { throwException(); -} catch (Throwable $e) { +} catch (Throwable $throwable) { - logException($e); + logException($throwable); $notification = new Notification(); - $notification->exception($e); + $notification->exception($throwable); } try { throwException(); -} catch (Throwable $e) { - logException($e); +} catch (Throwable $throwable) { + logException($throwable); $notification = new Notification(); $notification->exception($e); }
Applied Rules:
Not a change you expect?
rector.php