-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Defluent] Skip interface on DefluentReturnMethodCallRector (#584)
Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
0515b03
commit c1b12be
Showing
3 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...sts/Defluent/Rector/Return_/DefluentReturnMethodCallRector/Fixture/skip_interface.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,13 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Defluent\Rector\Return_\DefluentReturnMethodCallRector\Fixture; | ||
|
||
use Rector\Tests\Defluent\Rector\Return_\DefluentReturnMethodCallRector\Source\MessageInterface; | ||
|
||
final class SkipInterface | ||
{ | ||
public function run(MessageInterface $message) | ||
{ | ||
return $message->withStatus(500); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...-tests/Defluent/Rector/Return_/DefluentReturnMethodCallRector/Source/MessageInterface.php
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,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Defluent\Rector\Return_\DefluentReturnMethodCallRector\Source; | ||
|
||
interface MessageInterface | ||
{ | ||
public function withStatus($status): self; | ||
} |
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