Skip to content

Commit 634776a

Browse files
committed
Added proper type definition
1 parent 1faa631 commit 634776a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoMapper/RestRequestMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class RestRequestMapper implements MapperInterface
4343
*/
4444
public function map($source, string $targetClass, array $context = []): RestDtoInterface
4545
{
46-
/** @psalm-var class-string $targetClass */
46+
/** @psalm-var class-string<RestDtoInterface> $targetClass */
4747
$destination = new $targetClass();
4848

4949
return $this->mapToObject($source, $destination, $context);

0 commit comments

Comments
 (0)