-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Remove useless nullable @return doc on RemoveUselessReturn…
…TagRector (#5321) * [DeadCode] Remove useless nullable return tag on RemoveUselessReturnTagRector * cs fix * Fix phpstan
- Loading branch information
1 parent
41729c2
commit 80cf578
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...Code/Rector/ClassMethod/RemoveUselessReturnTagRector/Fixture/useless_nullable_doc.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,34 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector\Fixture; | ||
|
||
use stdClass; | ||
|
||
class UselessNullableDoc | ||
{ | ||
/** | ||
* @return stdClass|null | ||
*/ | ||
function foo(): stdClass | ||
{ | ||
return new stdClass(); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector\Fixture; | ||
|
||
use stdClass; | ||
|
||
class UselessNullableDoc | ||
{ | ||
function foo(): stdClass | ||
{ | ||
return new stdClass(); | ||
} | ||
} | ||
|
||
?> |
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