Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d861e0

Browse files
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

Lines changed: 1 addition & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /