Skip to content

Commit 483abd6

Browse files
authored
Merge pull request #20 from rekalogika:fix/mapper-map-typehint
fix(`Mapper`): Fix typehint.
2 parents eeacf75 + b810f79 commit 483abd6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* feat: `PresetTransformer`.
66
* fix: Typo in `RemoveOptionalDefinitionPass`
77
* feat: Supports dynamic properties (including `stdClass`) on the target side.
8+
* fix(`Mapper`): Fix typehint.
89

910
## 1.0.0
1011

src/Implementation/Mapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434
* @param class-string<T>|T $target
3535
* @return T
3636
*/
37-
public function map(mixed $source, object|string $target, ?Context $context = null): object
37+
public function map(object $source, object|string $target, ?Context $context = null): object
3838
{
3939
if (is_string($target)) {
4040
$targetClass = $target;

0 commit comments

Comments
 (0)