1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Remove unnecessary hack embedding IfScope in Context object

This commit is contained in:
Matthew Brown 2022-01-24 14:00:20 -05:00
parent 61d450a267
commit 18f5446924
3 changed files with 0 additions and 11 deletions

View File

@ -7,7 +7,6 @@ use Psalm\Internal\Clause;
use Psalm\Internal\ReferenceConstraint;
use Psalm\Internal\Scope\CaseScope;
use Psalm\Internal\Scope\FinallyScope;
use Psalm\Internal\Scope\IfScope;
use Psalm\Internal\Scope\LoopScope;
use Psalm\Internal\Type\AssertionReconciler;
use Psalm\Storage\FunctionLikeStorage;
@ -313,11 +312,6 @@ class Context
*/
public $if_context;
/**
* @var IfScope|null
*/
public $if_scope;
/**
* @var bool
*/

View File

@ -143,7 +143,6 @@ class IfConditionalAnalyzer
$if_conditional_context = clone $if_context;
$if_conditional_context->if_context = $if_context;
$if_conditional_context->if_scope = $if_scope;
if ($codebase->alter_code) {
$if_context->branch_point = $branch_point;

View File

@ -148,10 +148,6 @@ class AndAnalyzer
);
$right_context->vars_in_scope = $right_vars_in_scope;
if ($context->if_scope) {
$context->if_scope->if_cond_changed_var_ids += $changed_var_ids;
}
}
$partitioned_clauses = Context::removeReconciledClauses($left_clauses, $changed_var_ids);