Skip to content

Commit

Permalink
Resolve Fail Test
Browse files Browse the repository at this point in the history
Variable `$var_id` added by commit:

Title:  Fix #302 - add a way to seal objects with magic properties
SHA:    a083069
Date:   2017-11-17
File:   src/Psalm/Checker/Statements/Expression/AssignmentChecker.php
Line:   682

After removing the `$var_id` variable, all project tests are successful.
  • Loading branch information
issidorov committed Aug 21, 2024
1 parent bdd3641 commit 3cf1942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ private static function analyzeAtomicAssignment(
* If we have an explicit list of all allowed magic properties on the class, and we're
* not in that list, fall through
*/
if (!$var_id || !$class_storage->hasSealedProperties($codebase->config)) {
if (!$class_storage->hasSealedProperties($codebase->config)) {
if (!$context->collect_initializations && !$context->collect_mutations) {
self::taintProperty(
$statements_analyzer,
Expand Down

0 comments on commit 3cf1942

Please sign in to comment.