From 3a125295fdcba0a6cf8d28b4f52b7c2079fc876e Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 12 Dec 2024 17:56:07 +0300 Subject: [PATCH] Improve psalm annotation in `HydratorInterface::create()` method --- CHANGELOG.md | 1 + src/HydratorInterface.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 */