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:
parent
a85cba3973
commit
998f91aa65
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
. '>';
|
||||
}
|
||||
|
@ -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) . '>';
|
||||
|
@ -147,7 +147,7 @@ class TKeyedArray extends \Psalm\Type\Atomic
|
||||
$namespace,
|
||||
$aliased_classes,
|
||||
$this_class,
|
||||
$use_phpdoc_format
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
. '>';
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user