Run Rector on your code to see what it can do for you:
<?php class InternalServerException {
} } -class BlogException extends InternalServerException -{ - public function __construct(string $message = 'Blog handling error', int $code = 570, ?Throwable $previous = null) - { - parent::__construct($message, $code, $previous); - } +class BlogException extends InternalServerException +{ }
Applied Rules:
Not a change you expect?
rector.php