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 9c20b50 commit db6f66dCopy full SHA for db6f66d
src/AutoMapper/RestRequestMapper.php
@@ -43,7 +43,7 @@ abstract class RestRequestMapper implements MapperInterface
43
*/
44
public function map($source, string $targetClass, array $context = []): RestDtoInterface
45
{
46
- /** @psalm-var class-string $targetClass */
+ /** @psalm-var class-string<RestDtoInterface> $targetClass */
47
$destination = new $targetClass();
48
49
return $this->mapToObject($source, $destination, $context);
0 commit comments