We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa62051 commit ce72138Copy full SHA for ce72138
1 file changed
src/Model/TemplateEngine/Decorator/InspectorHintsFactory.php
@@ -15,6 +15,7 @@ class InspectorHintsFactory
15
{
16
/**
17
* @param Random $random
18
+ * @phpstan-ignore property.onlyWritten
19
*/
20
public function __construct(
21
private readonly Random $random
@@ -38,13 +39,10 @@ public function create(array $data = []): InspectorHints
38
39
);
40
}
41
- // Extract random generator to satisfy PHPStan (readonly property usage detection)
42
- $randomGenerator = $this->random;
43
-
44
return new InspectorHints(
45
$subject,
46
(bool)$showBlockHints,
47
- $randomGenerator
+ $this->random
48
49
50
0 commit comments