@@ -182,9 +182,7 @@ public function specifyTypesInCondition(
182
182
} elseif ($ expr instanceof Node \Expr \BinaryOp \Identical) {
183
183
$ expressions = $ this ->findTypeExpressionsFromBinaryOperation ($ scope , $ expr );
184
184
if ($ expressions !== null ) {
185
- /** @var Expr $exprNode */
186
185
$ exprNode = $ expressions [0 ];
187
- /** @var ConstantScalarType $constantType */
188
186
$ constantType = $ expressions [1 ];
189
187
190
188
$ specifiedType = $ this ->specifyTypesForConstantBinaryExpression ($ exprNode , $ constantType , $ context , $ scope , $ rootExpr );
@@ -291,9 +289,7 @@ public function specifyTypesInCondition(
291
289
} elseif ($ expr instanceof Node \Expr \BinaryOp \Equal) {
292
290
$ expressions = $ this ->findTypeExpressionsFromBinaryOperation ($ scope , $ expr );
293
291
if ($ expressions !== null ) {
294
- /** @var Expr $exprNode */
295
292
$ exprNode = $ expressions [0 ];
296
- /** @var ConstantScalarType $constantType */
297
293
$ constantType = $ expressions [1 ];
298
294
if (!$ context ->null () && ($ constantType ->getValue () === false || $ constantType ->getValue () === null )) {
299
295
return $ this ->specifyTypesInCondition (
@@ -1418,7 +1414,7 @@ private function processBooleanConditionalTypes(Scope $scope, SpecifiedTypes $le
1418
1414
}
1419
1415
1420
1416
/**
1421
- * @return ( Expr| ConstantScalarType)[] |null
1417
+ * @return array{ Expr, ConstantScalarType} |null
1422
1418
*/
1423
1419
private function findTypeExpressionsFromBinaryOperation (Scope $ scope , Node \Expr \BinaryOp $ binaryOperation ): ?array
1424
1420
{
0 commit comments