-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LocallyCalledStaticMethodToNonStaticRector with method args (#4233)
* LocallyCalledStaticMethodToNonStaticRector with method args * keep method args on refactoring * LocallyCalledStaticMethodToNonStaticRector with method args * remove leading whitespaced
- Loading branch information
1 parent
7753562
commit 2694671
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...or/ClassMethod/LocallyCalledStaticMethodToNonStaticRector/Fixture/method_with_arg.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,35 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\RemovingStatic\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector\Fixture; | ||
|
||
class MethodWithArg | ||
{ | ||
public function run($arg) | ||
{ | ||
self::someStatic($arg); | ||
} | ||
|
||
private static function someStatic($arg) | ||
{ | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\RemovingStatic\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector\Fixture; | ||
|
||
class MethodWithArg | ||
{ | ||
public function run($arg) | ||
{ | ||
$this->someStatic($arg); | ||
} | ||
|
||
private function someStatic($arg) | ||
{ | ||
} | ||
} | ||
|
||
?> |
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