<?php

namespace Rector\TypeDeclaration\Tests\Rector\ClassMethod\ReturnTypeDeclarationRector\Fixture\Dunglas;

trait BazTrait
{
    /**
     * @return \DateTime
     */
    protected function inTrait($a)
    {
        return $a;
    }
}
?>
-----
<?php

namespace Rector\TypeDeclaration\Tests\Rector\ClassMethod\ReturnTypeDeclarationRector\Fixture\Dunglas;

trait BazTrait
{
    /**
     * @return \DateTime
     */
    protected function inTrait($a): \DateTime
    {
        return $a;
    }
}
?>
