Skip to content
Permalink
Browse files

Improve template handling robustness

  • Loading branch information...
muglug committed Jun 25, 2019
1 parent 5cb6fe1 commit d96246a82459289e1e9db0999c6f529923279c7e
@@ -660,7 +660,15 @@ function (FunctionLikeParameter $p) {
&& !TypeAnalyzer::isContainedBy(
$codebase,
$default_type,
$param_type
$param_type,
false,
false,
$has_scalar_match,
$type_coerced,
$type_coerced_from_mixed,
$to_string_cast,
$type_coerced_from_scalar,
true
)
) {
if (IssueBuffer::accepts(
@@ -127,7 +127,8 @@ public static function analyze(
$lhs_type_part->param_name,
$lhs_type_part->as_type
? new Type\Union([$lhs_type_part->as_type])
: Type::parseString($lhs_type_part->as)
: Type::parseString($lhs_type_part->as),
$lhs_type_part->defining_class
);
if ($new_type) {
@@ -620,6 +620,8 @@ private function populateInterfaceDataFromParentInterfaces(
}
}
$parent_interface_storage->dependent_classlikes[strtolower($storage->name)] = true;
$parent_interfaces = array_merge($parent_interfaces, $parent_interface_storage->parent_interfaces);
$this->inheritMethodsFromParent($storage, $parent_interface_storage);

0 comments on commit d96246a

Please sign in to comment.
You can’t perform that action at this time.