Skip to content

Commit

Permalink
Merge pull request #20 from rekalogika:fix/mapper-map-typehint
Browse files Browse the repository at this point in the history
fix(`Mapper`): Fix typehint.
  • Loading branch information
priyadi committed Feb 20, 2024
2 parents eeacf75 + b810f79 commit 483abd6
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 @@ -5,6 +5,7 @@
* feat: `PresetTransformer`.
* fix: Typo in `RemoveOptionalDefinitionPass`
* feat: Supports dynamic properties (including `stdClass`) on the target side.
* fix(`Mapper`): Fix typehint.

## 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion src/Implementation/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
* @param class-string<T>|T $target
* @return T
*/
public function map(mixed $source, object|string $target, ?Context $context = null): object
public function map(object $source, object|string $target, ?Context $context = null): object
{
if (is_string($target)) {
$targetClass = $target;
Expand Down

0 comments on commit 483abd6

Please sign in to comment.