2016-11-11 23:13:13 +01:00
|
|
|
<?php
|
2017-12-03 00:28:18 +01:00
|
|
|
namespace Psalm\Scope;
|
|
|
|
|
|
|
|
use Psalm\Clause;
|
|
|
|
use Psalm\Type;
|
2016-11-11 23:13:13 +01:00
|
|
|
|
|
|
|
class IfScope
|
|
|
|
{
|
|
|
|
/**
|
2016-12-24 19:23:22 +01:00
|
|
|
* @var array<string, Type\Union>|null
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $new_vars = null;
|
|
|
|
|
|
|
|
/**
|
2017-12-02 19:32:20 +01:00
|
|
|
* @var array<string, bool>
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $new_vars_possibly_in_scope = [];
|
|
|
|
|
2017-05-27 02:16:18 +02:00
|
|
|
/**
|
2016-12-24 19:23:22 +01:00
|
|
|
* @var array<string, Type\Union>|null
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $forced_new_vars = null;
|
|
|
|
|
|
|
|
/**
|
2016-12-24 19:23:22 +01:00
|
|
|
* @var array<string, Type\Union>|null
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $redefined_vars = null;
|
|
|
|
|
|
|
|
/**
|
2016-12-24 19:23:22 +01:00
|
|
|
* @var array<string, Type\Union>
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $possibly_redefined_vars = [];
|
|
|
|
|
|
|
|
/**
|
2017-02-24 01:36:51 +01:00
|
|
|
* @var array<string, bool>
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $updated_vars = [];
|
|
|
|
|
|
|
|
/**
|
2016-12-24 19:23:22 +01:00
|
|
|
* @var array<string, string>
|
2016-11-11 23:13:13 +01:00
|
|
|
*/
|
|
|
|
public $negated_types = [];
|
|
|
|
|
2018-01-20 17:48:16 +01:00
|
|
|
/**
|
|
|
|
* @var array<mixed, string>
|
|
|
|
*/
|
|
|
|
public $if_cond_changed_var_ids = [];
|
|
|
|
|
2016-11-11 23:13:13 +01:00
|
|
|
/**
|
|
|
|
* @var array<string, string>|null
|
|
|
|
*/
|
|
|
|
public $negatable_if_types = null;
|
|
|
|
|
2017-03-16 19:45:45 +01:00
|
|
|
/**
|
2017-03-18 19:04:26 +01:00
|
|
|
* @var array<int, Clause>
|
2017-03-16 19:45:45 +01:00
|
|
|
*/
|
|
|
|
public $negated_clauses;
|
|
|
|
|
|
|
|
/**
|
2017-03-18 19:04:26 +01:00
|
|
|
* @var array<int, Clause>
|
2017-03-16 19:45:45 +01:00
|
|
|
*/
|
2017-03-18 18:37:00 +01:00
|
|
|
public $reasonable_clauses = [];
|
2017-09-03 00:15:52 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Variables that were mixed, but are no longer
|
|
|
|
*
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
|
|
|
public $possible_param_types = null;
|
2017-12-03 00:28:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
public $final_actions = [];
|
2016-11-11 23:13:13 +01:00
|
|
|
}
|