Skip to content

Commit

Permalink
fix(Mapper): Fix typehint.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Feb 20, 2024
1 parent eeacf75 commit b810f79
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 b810f79

Please sign in to comment.