mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
fix cs
This commit is contained in:
parent
a19012c6fd
commit
239f354fb1
@ -47,8 +47,8 @@ final class MethodCallTypeResolverTest extends AbstractNodeTypeResolverTest
|
||||
'Rector\NodeTypeResolver\Tests\Source\SomeClass',
|
||||
]];
|
||||
#on trait method call
|
||||
yield [__DIR__ . '/MethodCallSource/SomeParentClassWithTraitCall.php.inc', 0, [
|
||||
'Doctrine\Common\Persistence\ManagerRegistry',
|
||||
yield [__DIR__ . '/MethodCallSource/SomeClassWithTraitCall.php.inc', 0, [
|
||||
'Rector\NodeTypeResolver\Tests\Source\SomeClass',
|
||||
]];
|
||||
}
|
||||
}
|
||||
|
@ -2,17 +2,7 @@
|
||||
|
||||
namespace Rector\NodeTypeResolver\Tests\Source;
|
||||
|
||||
use Doctrine\Common\Persistence\ManagerRegistry;
|
||||
|
||||
class SomeClassWithTrait
|
||||
final class SomeClassWithTrait
|
||||
{
|
||||
use ControllerTrait;
|
||||
}
|
||||
|
||||
trait ControllerTrait
|
||||
{
|
||||
public function getDoctrine(): ManagerRegistry
|
||||
{
|
||||
return new ManagerRegistry();
|
||||
}
|
||||
use SomeTrait;
|
||||
}
|
11
packages/NodeTypeResolver/tests/Source/SomeTrait.php
Normal file
11
packages/NodeTypeResolver/tests/Source/SomeTrait.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\NodeTypeResolver\Tests\Source;
|
||||
|
||||
trait SomeTrait
|
||||
{
|
||||
public function getDoctrine(): SomeClass
|
||||
{
|
||||
return new SomeClass();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user