Skip to content

Commit

Permalink
[#1152] PhpUnitTestsInspector: fixed broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
kalessil committed Apr 26, 2020
1 parent fff8cc7 commit 59b06ac
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -73,7 +73,7 @@ static public boolean apply(@NotNull String methodName, @NotNull MethodReference
if (assertionArguments.length > 1) {
suggestedArguments[2] = assertionArguments[1].getText();
}
message = String.format(ReportingUtil.wrapReportedMessage(messagePatternInternalType), suggestedAssertion, suggestedType);
message = String.format(messagePatternInternalType, suggestedAssertion, suggestedType);
} else {
/* internal type assertions were deprecated */
suggestedAssertion = String.format(
Expand All @@ -86,13 +86,13 @@ static public boolean apply(@NotNull String methodName, @NotNull MethodReference
if (assertionArguments.length > 1) {
suggestedArguments[1] = assertionArguments[1].getText();
}
message = String.format(ReportingUtil.wrapReportedMessage(messagePattern), suggestedAssertion);
message = String.format(messagePattern, suggestedAssertion);

}
/* register an issue */
holder.registerProblem(
reference,
message,
ReportingUtil.wrapReportedMessage(message),
new PhpUnitAssertFixer(suggestedAssertion, suggestedArguments)
);
result = true;
Expand Down

0 comments on commit 59b06ac

Please sign in to comment.