Run Rector on your code to see what it can do for you:
<?php namespace Domains\Calculator\Exceptions;
use Exception; -class EmailException extends Exception -{ - public function __construct($message = 'Email not sent.', ...$args) - { - parent::__construct($message, ...$args); - } +class EmailException extends Exception +{ }
Applied Rules:
Not a change you expect?
rector.php