Skip to content

Commit

Permalink
Remove unnecessary references to had_template
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jul 10, 2019
1 parent 2cb7625 commit 8e14946
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Expand Up @@ -2715,9 +2715,7 @@ private static function coerceValueAfterGatekeeperArgument(
&& $input_atomic_type->value === $param_atomic_type->value
) {
foreach ($input_atomic_type->type_params as $i => $type_param) {
if (($type_param->isEmpty() || $type_param->had_template)
&& isset($param_atomic_type->type_params[$i])
) {
if ($type_param->isEmpty() && isset($param_atomic_type->type_params[$i])) {
$input_type_changed = true;

$input_atomic_type->type_params[$i] = clone $param_atomic_type->type_params[$i];
Expand Down
2 changes: 0 additions & 2 deletions src/Psalm/Type/Union.php
Expand Up @@ -1121,8 +1121,6 @@ public function replaceTemplateTypesWithStandins(

$this->types[$class_string->getKey()] = $class_string;

$this->had_template = true;

if ($input_type) {
$valid_input_atomic_types = [];

Expand Down

0 comments on commit 8e14946

Please sign in to comment.