2020-11-27 20:19:55 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Internal\Analyzer\Statements\Expression;
|
|
|
|
|
|
|
|
use Psalm\Type;
|
|
|
|
|
|
|
|
class ArrayCreationInfo
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var list<Type\Atomic>
|
|
|
|
*/
|
|
|
|
public $item_key_atomic_types = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var list<Type\Atomic>
|
|
|
|
*/
|
|
|
|
public $item_value_atomic_types = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<int|string, Type\Union>
|
|
|
|
*/
|
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, \Psalm\Internal\DataFlow\DataFlowNode>
|
|
|
|
*/
|
|
|
|
public $parent_taint_nodes = [];
|
|
|
|
}
|