use Foo\Bar;
use Foo\Bar\Baz;
class SomeClass
{
private \Foo\Bar\Baz $baz;
- public function doSomething(\Foo\Bar $foo): \Foo\Bar\Baz
+ public function doSomething(Bar $foo): Baz
{
}
}
use Foo\Bar;
use Foo\Bar\Baz;
class SomeClass
{
- private \Foo\Bar\Baz $baz;
+ private Baz $baz;
- public function doSomething(\Foo\Bar $foo): \Foo\Bar\Baz
+ public function doSomething(Bar $foo): Baz
{
}
}
Note: I added the "feature request" label but IMO this should be considered an enhancement and target lowest maintained branch.
Most helpful comment
Note: I added the "feature request" label but IMO this should be considered an enhancement and target lowest maintained branch.