diff --git a/CHANGELOG.md b/CHANGELOG.md index d2555de..f96f778 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.5.1 under development - New #63: Add nested mapping support via new `ObjectMap` class (@vjik) +- Enh #99: Improve psalm annotation in `HydratorInterface::create()` method (@vjik) ## 1.5.0 September 17, 2024 diff --git a/src/HydratorInterface.php b/src/HydratorInterface.php index 3f25b2c..b0979fa 100644 --- a/src/HydratorInterface.php +++ b/src/HydratorInterface.php @@ -30,7 +30,7 @@ public function hydrate(object $object, array|DataInterface $data = []): void; * @throws NonInstantiableException * @return object Created and hydrated object. * - * @psalm-template T + * @psalm-template T as object * @psalm-param class-string $class * @psalm-return T */