Run Rector on your code to see what it can do for you:

 <?php
 
  use PHPUnit\Framework\TestCase;
 
- final class SomeHelper extends TestCase
- {
+ final class SomeHelper extends TestCase
+ {
+     public function __construct()
+     {
+         parent::__construct(static::class);
+     }
  }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 514030 - released at 2026-01-27 01:27