Skip to content

Commit e7319c4

Browse files
committed
fix: simplify constructor by using property promotion
1 parent 60d240c commit e7319c4

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/Model/TemplateEngine/Decorator/InspectorHintsFactory.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111
*/
1212
class InspectorHintsFactory
1313
{
14-
private ObjectManagerInterface $objectManager;
15-
16-
/**
17-
* @param ObjectManagerInterface $objectManager
18-
*/
19-
public function __construct(ObjectManagerInterface $objectManager)
20-
{
21-
$this->objectManager = $objectManager;
14+
public function __construct(
15+
private readonly ObjectManagerInterface $objectManager
16+
) {
2217
}
2318

2419
/**

0 commit comments

Comments
 (0)