[Legacy] Add FunctionToStaticMethodRector

This commit is contained in:
TomasVotruba 2020-05-12 17:20:40 +02:00
parent dbfaf6e11d
commit 6ae80bc07a
2 changed files with 3 additions and 2 deletions

View File

@ -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
{

View File

@ -8,4 +8,5 @@ function first_static_function()
{
return 5;
}
$value = first_static_function();