Skip to content

Commit

Permalink
Improve psalm annotation in HydratorInterface::create() method
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 12, 2024
1 parent 69ab3fe commit 3a12529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/HydratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> $class
* @psalm-return T
*/
Expand Down

0 comments on commit 3a12529

Please sign in to comment.