mirror of
https://github.com/danog/Valinor.git
synced 2024-12-03 10:07:48 +01:00
15 lines
314 B
PHP
15 lines
314 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace CuyZ\Valinor\Tests\StaticAnalysis;
|
||
|
|
||
|
use CuyZ\Valinor\Mapper\TreeMapper;
|
||
|
use CuyZ\Valinor\Tests\StaticAnalysis\Stub\A;
|
||
|
|
||
|
/** @param mixed $input */
|
||
|
function mappingClassWillInferObjectOfSameType(TreeMapper $mapper, $input): A
|
||
|
{
|
||
|
return $mapper->map(A::class, $input);
|
||
|
}
|