-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php54] Add MethodCall and StaticCall support on RemoveReferenceFromC…
…allRector (#2553) * [Php54] Add MethodCall and StaticCall on RemoveReferenceFromCallRector * implemented 🎉
- Loading branch information
1 parent
6c0332c
commit 574e000
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...ests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/Fixture/some_method_call.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\Php54\Rector\FuncCall\RemoveReferenceFromCallRector\Fixture; | ||
|
||
class SomeMethodCall | ||
{ | ||
function removeReference($one) | ||
{ | ||
return $this->bar(&$one); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php54\Rector\FuncCall\RemoveReferenceFromCallRector\Fixture; | ||
|
||
class SomeMethodCall | ||
{ | ||
function removeReference($one) | ||
{ | ||
return $this->bar($one); | ||
} | ||
} | ||
|
||
?> |
27 changes: 27 additions & 0 deletions
27
...ests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/Fixture/some_static_call.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\Php54\Rector\FuncCall\RemoveReferenceFromCallRector\Fixture; | ||
|
||
class SomeStaticCall | ||
{ | ||
function removeReference($one) | ||
{ | ||
return Foo::bar(&$one); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php54\Rector\FuncCall\RemoveReferenceFromCallRector\Fixture; | ||
|
||
class SomeStaticCall | ||
{ | ||
function removeReference($one) | ||
{ | ||
return Foo::bar($one); | ||
} | ||
} | ||
|
||
?> |
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