2020-09-21 21:16:19 +02:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2020-09-21 21:16:19 +02:00
|
|
|
namespace Psalm\Internal\Scope;
|
|
|
|
|
2021-12-13 16:28:14 +01:00
|
|
|
use Psalm\Type\Union;
|
2020-09-21 21:16:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
class FinallyScope
|
|
|
|
{
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var array<string, Union>
|
2020-09-21 21:16:19 +02:00
|
|
|
*/
|
|
|
|
public $vars_in_scope = [];
|
2020-09-21 22:01:14 +02:00
|
|
|
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @param array<string, Union> $vars_in_scope
|
2020-09-21 22:01:14 +02:00
|
|
|
*/
|
|
|
|
public function __construct(array $vars_in_scope)
|
|
|
|
{
|
|
|
|
$this->vars_in_scope = $vars_in_scope;
|
|
|
|
}
|
2020-09-21 21:16:19 +02:00
|
|
|
}
|