Skip to content
Permalink
Browse files

Fix build issues

  • Loading branch information
muglug committed Dec 15, 2019
1 parent 72f3c30 commit 090ad90de3050797171698d81aa40b2de6568b9b
@@ -875,8 +875,6 @@ public static function analyzeInstance(
$has_valid_assignment_value_type = true;
}

var_dump($assignment_value_type->getId() . ' ' . $class_property_type->getId());

$invalid_assignment_value_types[] = $class_property_type->getId();
} else {
$has_valid_assignment_value_type = true;
@@ -469,7 +469,13 @@ public static function localizeType(
if (isset($extends[$base_fq_class_name][$atomic_type->param_name])) {
$extended_param = $extends[$base_fq_class_name][$atomic_type->param_name];

$atomic_type->as = $extended_param;
$types = array_values($extended_param->getTypes());

if (count($types) === 1 && $types[0] instanceof Type\Atomic\TNamedObject) {
$atomic_type->as_type = $types[0];
} else {
$atomic_type->as_type = null;
}
}
}
}

0 comments on commit 090ad90

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