-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more test for native mixed return
- Loading branch information
1 parent
5044fa1
commit 1835072
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...sMethod/ReturnTypeFromStrictTypedCallRector/FixturePhp80/with_native_mixed_return.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
||
?> |