We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a8c2a commit bf6186bCopy full SHA for bf6186b
src/AutoMapper/RestRequestMapper.php
@@ -45,7 +45,7 @@ abstract class RestRequestMapper implements MapperInterface
45
*/
46
public function map($source, string $targetClass, array $context = []): RestDtoInterface
47
{
48
- /** @psalm-var class-string $targetClass */
+ /** @psalm-var class-string<RestDtoInterface> $targetClass */
49
$destination = new $targetClass();
50
51
return $this->mapToObject($source, $destination, $context);
0 commit comments