mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
separate different cases
This commit is contained in:
parent
f8c279f48c
commit
3717f13ec1
@ -11,7 +11,5 @@ class ActionClass
|
||||
*/
|
||||
public function someFunction(?string $name): ?string
|
||||
{
|
||||
/** @var string|null $someValueObject */
|
||||
$someValueObject = 'value';
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace SomeNamespace;
|
||||
|
||||
use Rector\Tests\Rector\Dynamic\ValueObjectRemoverRector\Source\SomeValueObject;
|
||||
|
||||
class ActionClass
|
||||
{
|
||||
public function someFunction(?string $name): ?string
|
||||
{
|
||||
/** @var string|null $someValueObject */
|
||||
$someValueObject = 'value';
|
||||
}
|
||||
}
|
@ -24,6 +24,7 @@ final class ValueObjectRemoverRectorTest extends AbstractRectorTestCase
|
||||
// yield [__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc'];
|
||||
// yield [__DIR__ . '/Wrong/wrong2.php.inc', __DIR__ . '/Correct/correct2.php.inc'];
|
||||
yield [__DIR__ . '/Wrong/wrong3.php.inc', __DIR__ . '/Correct/correct3.php.inc'];
|
||||
// yield [__DIR__ . '/Wrong/wrong4.php.inc', __DIR__ . '/Correct/correct4.php.inc'];
|
||||
}
|
||||
|
||||
protected function provideConfig(): string
|
||||
|
@ -11,7 +11,5 @@ class ActionClass
|
||||
*/
|
||||
public function someFunction(?SomeValueObject $name): ?SomeValueObject
|
||||
{
|
||||
/** @var SomeValueObject|null $someValueObject */
|
||||
$someValueObject = new SomeValueObject('value');
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace SomeNamespace;
|
||||
|
||||
use Rector\Tests\Rector\Dynamic\ValueObjectRemoverRector\Source\SomeValueObject;
|
||||
|
||||
class ActionClass
|
||||
{
|
||||
public function someFunction(?SomeValueObject $name): ?SomeValueObject
|
||||
{
|
||||
/** @var SomeValueObject|null $someValueObject */
|
||||
$someValueObject = new SomeValueObject('value');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user