2020-11-27 20:19:55 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Internal\Analyzer\Statements\Expression;
|
|
|
|
|
2021-12-04 03:37:19 +01:00
|
|
|
use Psalm\Internal\DataFlow\DataFlowNode;
|
2021-12-13 16:28:14 +01:00
|
|
|
use Psalm\Type\Atomic;
|
|
|
|
use Psalm\Type\Union;
|
2020-11-27 20:19:55 +01:00
|
|
|
|
|
|
|
class ArrayCreationInfo
|
|
|
|
{
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var list<Atomic>
|
2020-11-27 20:19:55 +01:00
|
|
|
*/
|
|
|
|
public $item_key_atomic_types = [];
|
|
|
|
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var list<Atomic>
|
2020-11-27 20:19:55 +01:00
|
|
|
*/
|
|
|
|
public $item_value_atomic_types = [];
|
|
|
|
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var array<int|string, Union>
|
2020-11-27 20:19:55 +01:00
|
|
|
*/
|
|
|
|
public $property_types = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, true>
|
|
|
|
*/
|
|
|
|
public $class_strings = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $can_create_objectlike = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<int|string, true>
|
|
|
|
*/
|
|
|
|
public $array_keys = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2021-03-20 02:44:44 +01:00
|
|
|
public $int_offset = 0;
|
2020-11-27 20:19:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $all_list = true;
|
|
|
|
|
|
|
|
/**
|
2021-12-04 03:37:19 +01:00
|
|
|
* @var array<string, DataFlowNode>
|
2020-11-27 20:19:55 +01:00
|
|
|
*/
|
|
|
|
public $parent_taint_nodes = [];
|
|
|
|
}
|