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

 
 final class CarIdentifierNoResult
 {
-    private ?string $body;
+    private readonly ?string $body;
     
     /**
      * @param Baureihe|null         $modelSeries
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 3b8b78 - released at 2026-07-24 13:03