Skip to content

Commit a832ecf

Browse files
committed
fix: improve docblocks and simplify create method
1 parent e7319c4 commit a832ecf

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Model/TemplateEngine/Decorator/InspectorHintsFactory.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
class InspectorHintsFactory
1313
{
14+
/**
15+
* @param ObjectManagerInterface $objectManager
16+
*/
1417
public function __construct(
1518
private readonly ObjectManagerInterface $objectManager
1619
) {
@@ -19,11 +22,13 @@ public function __construct(
1922
/**
2023
* Create InspectorHints instance
2124
*
22-
* @param array $data
25+
* @param array<string, mixed> $data
2326
* @return InspectorHints
2427
*/
2528
public function create(array $data = []): InspectorHints
2629
{
27-
return $this->objectManager->create(InspectorHints::class, $data);
30+
/** @var InspectorHints $instance */
31+
$instance = $this->objectManager->create(InspectorHints::class, $data);
32+
return $instance;
2833
}
2934
}

0 commit comments

Comments
 (0)