Skip to content
Permalink
Browse files

Remove unnecessary references to had_template

  • Loading branch information...
muglug committed Jul 10, 2019
1 parent 2cb7625 commit 8e149461f045b6dd5b2014e801a3c1f8fa34ce0d
Showing with 1 addition and 5 deletions.
  1. +1 −3 src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php
  2. +0 −2 src/Psalm/Type/Union.php
@@ -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];
@@ -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 = [];

0 comments on commit 8e14946

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