mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +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);
|
||
|
}
|