Skip to content

Commit 9d8a769

Browse files
committed
fix: extract random generator for PHPStan compliance
1 parent 604fa51 commit 9d8a769

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Model/TemplateEngine/Decorator/InspectorHintsFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ public function create(array $data = []): InspectorHints
3838
);
3939
}
4040

41+
// Extract random generator to satisfy PHPStan (readonly property usage detection)
42+
$randomGenerator = $this->random;
43+
4144
return new InspectorHints(
4245
$subject,
4346
(bool)$showBlockHints,
44-
$this->random
47+
$randomGenerator
4548
);
4649
}
4750
}

0 commit comments

Comments
 (0)