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
+{
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: f8c758 - released at 2026-01-01 17:22