Skip to content

Commit 4d861e0

Browse files
committed
Fix after TypeSpecifier BC break
1 parent 3faa605 commit 4d861e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Type/PHPUnit/Assert/AssertTypeSpecifyingExtensionHelper.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ public static function specifyTypes(
101101
$scope,
102102
$expression,
103103
TypeSpecifierContext::createTruthy(),
104-
$bypassAlwaysTrueIssue ? new Expr\BinaryOp\BooleanAnd($expression, new Expr\Variable('nonsense')) : null,
105-
);
104+
)->setRootExpr($bypassAlwaysTrueIssue ? new Expr\BinaryOp\BooleanAnd($expression, new Expr\Variable('nonsense')) : $expression);
106105
}
107106

108107
/**

0 commit comments

Comments
 (0)