1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 01:37:23 +01:00

variable with single value

This commit is contained in:
orklah 2021-09-26 22:23:09 +02:00
parent a85cba3973
commit 998f91aa65
7 changed files with 12 additions and 12 deletions

View File

@ -1075,7 +1075,7 @@ class AssertionReconciler extends \Psalm\Type\Reconciler
$existing_var_atomic_type->as = self::handleLiteralEquality(
$assertion,
$bracket_pos,
$is_loose_equality,
false,
$existing_var_atomic_type->as,
$old_var_type_string,
$var_id,

View File

@ -179,7 +179,7 @@ class TemplateStandinTypeReplacer
$template_result,
$codebase,
$statements_analyzer,
$replace,
true,
$add_lower_bound,
$bound_equality_classlike,
$depth,
@ -599,7 +599,7 @@ class TemplateStandinTypeReplacer
$input_arg_offset,
$calling_class,
$calling_function,
$replace,
true,
$add_lower_bound,
$bound_equality_classlike,
$depth + 1
@ -685,7 +685,7 @@ class TemplateStandinTypeReplacer
$input_arg_offset,
$calling_class,
$calling_function,
$replace,
true,
$add_lower_bound,
$bound_equality_classlike,
$depth + 1

View File

@ -92,7 +92,7 @@ class TClassStringMap extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
true
);
}
@ -106,7 +106,7 @@ class TClassStringMap extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
false
)
. '>';
}

View File

@ -70,7 +70,7 @@ class TIntMask extends TInt
$s = '';
foreach ($this->values as $value) {
$s .= $value->toNamespacedString($namespace, $aliased_classes, $this_class, $use_phpdoc_format) . ', ';
$s .= $value->toNamespacedString($namespace, $aliased_classes, $this_class, false) . ', ';
}
return 'int-mask<' . substr($s, 0, -2) . '>';

View File

@ -147,7 +147,7 @@ class TKeyedArray extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
true
);
}

View File

@ -68,7 +68,7 @@ class TList extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
true
);
}
@ -79,7 +79,7 @@ class TList extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
false
)
. '>';
}

View File

@ -100,7 +100,7 @@ class TTemplateParam extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
true
);
}
@ -108,7 +108,7 @@ class TTemplateParam extends \Psalm\Type\Atomic
$namespace,
$aliased_classes,
$this_class,
$use_phpdoc_format
false
);
return $this->param_name . $intersection_types;