Skip to content

Commit bf6186b

Browse files
committed
Added proper type definition
1 parent 74a8c2a commit bf6186b

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
@@ -45,7 +45,7 @@ abstract class RestRequestMapper implements MapperInterface
4545
*/
4646
public function map($source, string $targetClass, array $context = []): RestDtoInterface
4747
{
48-
/** @psalm-var class-string $targetClass */
48+
/** @psalm-var class-string<RestDtoInterface> $targetClass */
4949
$destination = new $targetClass();
5050

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

0 commit comments

Comments
 (0)