<?php

namespace SomeNamespace;

use Rector\DomainDrivenDesign\Tests\Rector\ObjectToScalarRector\Source\SomeValueObject;

class FourthActionClass
{
    public function someFunction(?SomeValueObject $name): ?SomeValueObject
    {
        /** @var SomeValueObject|null $someValueObject */
        $someValueObject = new SomeValueObject('value');
    }
}

?>
-----
<?php

namespace SomeNamespace;

use Rector\DomainDrivenDesign\Tests\Rector\ObjectToScalarRector\Source\SomeValueObject;

class FourthActionClass
{
    public function someFunction(?string $name): ?string
    {
        /** @var SomeValueObject|null $someValueObject */
        $someValueObject = 'value';
    }
}

?>
