public function testNamespaceResolutionForProperty()
{
$php = '<?php
namespace MyNamespace;
use Psr\\Log\\LoggerInterface;
class ThingThatLogs
{
/**
* @param LoggerInterface $bar
*/
public function foo($bar) {}
}
';
$param = (new ClassReflector(new StringSourceLocator($php)))->reflect('MyNamespace\\ThingThatLogs')->getMethod('foo')->getParameter('bar');
$this->assertSame(['\\Psr\\Log\\LoggerInterface'], $param->getDocBlockTypeStrings());
}