Skip to content
Permalink
Browse files

Mark var as unused

  • Loading branch information
muglug committed Nov 13, 2019
1 parent fe5e675 commit 00be4c207195e153d68bb99a3e81a7804282bf6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Analyzer/Statements/Expression/TernaryAnalyzer.php
@@ -308,7 +308,7 @@ function (\Psalm\Internal\Clause $c) use ($mixed_var_ids) {
$t_else_context->unreferenced_vars
);
foreach ($context->unreferenced_vars as $var_id => $locations) {
foreach ($context->unreferenced_vars as $var_id => $_) {
if (isset($t_else_context->unreferenced_vars[$var_id])) {
$context->unreferenced_vars[$var_id] += $t_else_context->unreferenced_vars[$var_id];
}

0 comments on commit 00be4c2

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