PHPStan\Type\StaticType::accepts PHP Method

accepts() public method

public accepts ( PHPStan\Type\Type $type ) : boolean
$type PHPStan\Type\Type
return boolean
    public function accepts(Type $type) : bool
    {
        return (new ObjectType($this->baseClass, $this->isNullable()))->accepts($type);
    }