@@ -158,6 +158,7 @@ static function (GeneratorScope $scope) use ($stmt, $expr, $context, $alternativ
158158 impurePoints: array_merge ($ impurePoints , $ result ->impurePoints ),
159159 specifiedTruthyTypes: new SpecifiedTypes (),
160160 specifiedFalseyTypes: new SpecifiedTypes (),
161+ specifiedNullTypes: new SpecifiedTypes (),
161162 );
162163 },
163164 true ,
@@ -189,6 +190,7 @@ static function (GeneratorScope $scope) use ($stmt, $expr, $context, $alternativ
189190 impurePoints: $ result ->impurePoints ,
190191 specifiedTruthyTypes: new SpecifiedTypes (),
191192 specifiedFalseyTypes: new SpecifiedTypes (),
193+ specifiedNullTypes: new SpecifiedTypes (),
192194 );
193195 }
194196
@@ -332,6 +334,7 @@ public function processAssignVar(
332334 impurePoints: $ impurePoints ,
333335 specifiedTruthyTypes: new SpecifiedTypes (),
334336 specifiedFalseyTypes: new SpecifiedTypes (),
337+ specifiedNullTypes: new SpecifiedTypes (),
335338 );
336339 } elseif ($ var instanceof ArrayDimFetch) {
337340 $ dimFetchStack = [];
@@ -544,6 +547,7 @@ public function processAssignVar(
544547 impurePoints: $ impurePoints ,
545548 specifiedTruthyTypes: new SpecifiedTypes (),
546549 specifiedFalseyTypes: new SpecifiedTypes (),
550+ specifiedNullTypes: new SpecifiedTypes (),
547551 );
548552 } elseif ($ var instanceof PropertyFetch) {
549553 $ objectResult = yield new ExprAnalysisRequest ($ stmt , $ var ->var , $ scope , $ context , $ alternativeNodeCallback );
@@ -661,6 +665,7 @@ public function processAssignVar(
661665 impurePoints: $ impurePoints ,
662666 specifiedTruthyTypes: new SpecifiedTypes (),
663667 specifiedFalseyTypes: new SpecifiedTypes (),
668+ specifiedNullTypes: new SpecifiedTypes (),
664669 );
665670 } elseif ($ var instanceof Expr \StaticPropertyFetch) {
666671 if ($ var ->class instanceof Node \Name) {
@@ -753,6 +758,7 @@ public function processAssignVar(
753758 impurePoints: $ impurePoints ,
754759 specifiedTruthyTypes: new SpecifiedTypes (),
755760 specifiedFalseyTypes: new SpecifiedTypes (),
761+ specifiedNullTypes: new SpecifiedTypes (),
756762 );
757763 } elseif ($ var instanceof List_) {
758764 $ exprGen = $ processExprCallback ($ scope );
@@ -813,6 +819,7 @@ static function (GeneratorScope $scope): Generator {
813819 impurePoints: [],
814820 specifiedTruthyTypes: new SpecifiedTypes (),
815821 specifiedFalseyTypes: new SpecifiedTypes (),
822+ specifiedNullTypes: new SpecifiedTypes (),
816823 );
817824 },
818825 $ enterExpressionAssign ,
@@ -836,6 +843,7 @@ static function (GeneratorScope $scope): Generator {
836843 impurePoints: $ impurePoints ,
837844 specifiedTruthyTypes: new SpecifiedTypes (),
838845 specifiedFalseyTypes: new SpecifiedTypes (),
846+ specifiedNullTypes: new SpecifiedTypes (),
839847 );
840848 } elseif ($ var instanceof ExistingArrayDimFetch) {
841849 $ dimFetchStack = [];
@@ -940,6 +948,7 @@ static function (GeneratorScope $scope): Generator {
940948 impurePoints: $ impurePoints ,
941949 specifiedTruthyTypes: new SpecifiedTypes (),
942950 specifiedFalseyTypes: new SpecifiedTypes (),
951+ specifiedNullTypes: new SpecifiedTypes (),
943952 );
944953 }
945954
@@ -957,6 +966,7 @@ static function (GeneratorScope $scope): Generator {
957966 impurePoints: $ result ->impurePoints ,
958967 specifiedTruthyTypes: new SpecifiedTypes (),
959968 specifiedFalseyTypes: new SpecifiedTypes (),
969+ specifiedNullTypes: new SpecifiedTypes (),
960970 );
961971 }
962972
0 commit comments