mirror of
https://github.com/rectorphp/rector.git
synced 2024-07-09 02:53:31 +00:00
fixup! fix double import of functio names
This commit is contained in:
parent
59858869ef
commit
d07952b480
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Renaming\Tests\Rector\Class_\RenameClassRector\Fixture\AutoImportNamesParameter;
|
||||
|
||||
class DoubleFunctionImport
|
||||
{
|
||||
public function create()
|
||||
{
|
||||
return \Safe\substr(1, 2);
|
||||
}
|
||||
|
||||
public function emulate()
|
||||
{
|
||||
return \Safe\substr(4, 5);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\Renaming\Tests\Rector\Class_\RenameClassRector\Fixture\AutoImportNamesParameter;
|
||||
|
||||
use function Safe\substr;
|
||||
class DoubleFunctionImport
|
||||
{
|
||||
public function create()
|
||||
{
|
||||
return substr(1, 2);
|
||||
}
|
||||
|
||||
public function emulate()
|
||||
{
|
||||
return substr(4, 5);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user