1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 06:58:41 +01:00
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/ArrayCreationInfo.php

61 lines
950 B
PHP
Raw Normal View History

2020-11-27 20:19:55 +01:00
<?php
2020-11-27 20:19:55 +01:00
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
2022-01-03 07:55:32 +01:00
/**
* @internal
*/
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
*/
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 = [];
public bool $can_be_empty = true;
2020-11-27 20:19:55 +01:00
}