1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/Internal/Scope/CaseScope.php
2019-11-25 15:20:31 -05:00

39 lines
666 B
PHP

<?php
namespace Psalm\Internal\Scope;
use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\Type;
/**
* @internal
*/
class CaseScope
{
/**
* @var array<string, array<string, CodeLocation>>
*/
public $unreferenced_vars = [];
/**
* @var Context
*/
public $parent_context;
/**
* @var array<string, Type\Union>|null
*/
public $break_vars;
public function __construct(Context $parent_context)
{
$this->parent_context = $parent_context;
}
public function __destruct()
{
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
$this->parent_context = null;
}
}