mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
31 lines
526 B
PHP
31 lines
526 B
PHP
|
<?php
|
||
|
namespace Psalm\Internal\Scope;
|
||
|
|
||
|
use Psalm\CodeLocation;
|
||
|
use Psalm\Context;
|
||
|
use Psalm\Type;
|
||
|
|
||
|
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 __destruct()
|
||
|
{
|
||
|
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
|
||
|
$this->parent_context = null;
|
||
|
}
|
||
|
}
|