Valinor/tests/StaticAnalysis/can-infer-tree-mapper-results.php

15 lines
314 B
PHP
Raw Normal View History

<?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);
}