mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-02 17:30:50 +00:00
3313a231b7
bb609b28e3
[Core] Always reset stopTraversal to false on next Rector visit (#4182)
31 lines
725 B
PHP
31 lines
725 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\NodeTypeResolver\PHPStan;
|
|
|
|
use PHPStan\Type\ObjectWithoutClassType;
|
|
use PHPStan\Type\Type;
|
|
use PHPStan\Type\TypeWithClassName;
|
|
final class ObjectWithoutClassTypeWithParentTypes extends ObjectWithoutClassType
|
|
{
|
|
/**
|
|
* @var TypeWithClassName[]
|
|
*/
|
|
private $parentTypes;
|
|
/**
|
|
* @param TypeWithClassName[] $parentTypes
|
|
*/
|
|
public function __construct(array $parentTypes, ?Type $subtractedType = null)
|
|
{
|
|
$this->parentTypes = $parentTypes;
|
|
parent::__construct($subtractedType);
|
|
}
|
|
/**
|
|
* @return TypeWithClassName[]
|
|
*/
|
|
public function getParentTypes() : array
|
|
{
|
|
return $this->parentTypes;
|
|
}
|
|
}
|