-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix union type check of object (#4893)
- Loading branch information
1 parent
c5897e5
commit 65fd201
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
...ts/Renaming/Rector/MethodCall/RenameMethodRector/Fixture/rename_reflection_method.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,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture; | ||
|
||
final class RenameReflectionMethod | ||
{ | ||
public function run(\ReflectionMethod|\ReflectionFunction $reflectionMethod) | ||
{ | ||
return $reflectionMethod->getTentativeReturnType(); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture; | ||
|
||
final class RenameReflectionMethod | ||
{ | ||
public function run(\ReflectionMethod|\ReflectionFunction $reflectionMethod) | ||
{ | ||
return $reflectionMethod->getReturnType(); | ||
} | ||
} | ||
|
||
?> |
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