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

 
 final class DemoFile
 {
-    private bool $isConstructed = false;
+    private bool $isConstructed = true;
     
     public mixed $value = null {
     	get {
     	mixed $value = null,
     ) {
         $this->value = $value;
-    	$this->isConstructed = true;
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 64ba1b - released at 2026-02-27 00:03