Skip to content

Commit aac10ff

Browse files
committed
fix: force object on generic
1 parent ff827df commit aac10ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Hydrator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function __construct(?ContainerInterface $container = null)
7474
*
7575
* @return T
7676
*
77-
* @template T
77+
* @template T of object
7878
*/
7979
public function hydrate(string|object $object, array|object $data): object
8080
{
@@ -174,7 +174,7 @@ public function hydrate(string|object $object, array|object $data): object
174174
*
175175
* @return T
176176
*
177-
* @template T
177+
* @template T of object
178178
*/
179179
public function hydrateWithJson(string|object $object, string $json, ?int $flags = null): object
180180
{

0 commit comments

Comments
 (0)