-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Skip fluent no return type on RemoveUnusedPrivateMethodRec…
…tor (#6108) * [DeadCode] Skip fluent no return type on RemoveUnusedPrivateMethodRector * comment
- Loading branch information
1 parent
2b2bbd1
commit eccf502
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...or/ClassMethod/RemoveUnusedPrivateMethodRector/Fixture/skip_fluent_no_return_type.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,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector\Fixture; | ||
|
||
class SkipFluentNoReturnType | ||
{ | ||
public function foo() | ||
{ | ||
return $this | ||
->bar() | ||
->baz() | ||
->qux(); | ||
} | ||
|
||
private function bar() | ||
{ | ||
return $this; | ||
} | ||
|
||
private function baz() | ||
{ | ||
return $this; | ||
} | ||
|
||
public function qux() | ||
{ | ||
return $this; | ||
} | ||
} |
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