Skip to content

Commit

Permalink
add more test for native mixed return
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 5, 2024
1 parent 5044fa1 commit 1835072
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector\FixturePhp80;

final class WithNativeReturnMixed
{
public function getData()
{
return $this->get();
}

private function get(): mixed
{
return null;
}
}

?>
-----
<?php

namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector\FixturePhp80;

final class WithNativeReturnMixed
{
public function getData(): mixed
{
return $this->get();
}

private function get(): mixed
{
return null;
}
}

?>

0 comments on commit 1835072

Please sign in to comment.