mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-29 14:13:30 +00:00
[Legacy] Add FunctionToStaticMethodRector
This commit is contained in:
parent
dbfaf6e11d
commit
6ae80bc07a
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\Legacy\Rector\Node;
|
||||
namespace Rector\Legacy\Rector\FileSystem;
|
||||
|
||||
use PhpParser\Builder\Class_ as ClassBuilder;
|
||||
use PhpParser\Builder\Method;
|
||||
|
@ -50,7 +50,7 @@ function some_function()
|
|||
|
||||
some_function('lol');
|
||||
PHP
|
||||
,
|
||||
,
|
||||
<<<'PHP'
|
||||
class SomeUtilsClass
|
||||
{
|
|
@ -8,4 +8,5 @@ function first_static_function()
|
|||
{
|
||||
return 5;
|
||||
}
|
||||
|
||||
$value = first_static_function();
|
||||
|
|
Loading…
Reference in New Issue
Block a user