public __construct ( |
||
$code_base | The global code base we're operating within | |
$context | The context of the parser at the node for which we'd like to determine a type | |
$assignment_node | ast\Node | The AST node containing the assignment |
$right_type | The type of the element on the right side of the assignment | |
$is_dim_assignment | boolean | True if this assignment is to an array parameter such as in `$foo[3] = 42`. We need to know this in order to decide if we're replacing the union type or if we're adding a type to the union type. |