mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-12 14:12:23 +00:00
add few more checks for class name
This commit is contained in:
parent
23679ac81a
commit
c19a849702
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Rector\Renaming\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
|
||||
final class RenameProperty
|
||||
{
|
||||
|
@ -13,6 +14,7 @@ final class RenameProperty
|
|||
private string $oldProperty,
|
||||
private string $newProperty
|
||||
) {
|
||||
RectorAssert::className($type);
|
||||
}
|
||||
|
||||
public function getObjectType(): ObjectType
|
||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
|
||||
final class NewArgToMethodCall
|
||||
{
|
||||
|
@ -16,6 +17,7 @@ final class NewArgToMethodCall
|
|||
private $value,
|
||||
private string $methodCall
|
||||
) {
|
||||
RectorAssert::className($type);
|
||||
}
|
||||
|
||||
public function getObjectType(): ObjectType
|
||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
|
||||
final class NewToStaticCall
|
||||
{
|
||||
|
@ -13,6 +14,8 @@ final class NewToStaticCall
|
|||
private string $staticCallClass,
|
||||
private string $staticCallMethod
|
||||
) {
|
||||
RectorAssert::className($type);
|
||||
RectorAssert::className($staticCallClass);
|
||||
}
|
||||
|
||||
public function getObjectType(): ObjectType
|
||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
|
||||
final class UnsetAndIssetToMethodCall
|
||||
{
|
||||
|
@ -13,6 +14,7 @@ final class UnsetAndIssetToMethodCall
|
|||
private string $issetMethodCall,
|
||||
private string $unsedMethodCall
|
||||
) {
|
||||
RectorAssert::className($type);
|
||||
}
|
||||
|
||||
public function getObjectType(): ObjectType
|
||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
|
||||
final class WrapReturn
|
||||
{
|
||||
|
@ -13,6 +14,7 @@ final class WrapReturn
|
|||
private string $method,
|
||||
private bool $isArrayWrap
|
||||
) {
|
||||
RectorAssert::className($type);
|
||||
}
|
||||
|
||||
public function getObjectType(): ObjectType
|
||||
|
|
Loading…
Reference in New Issue
Block a user