Skip to content

Commit b9b53e4

Browse files
nclsHartnorberttech
authored andcommitted
remove double call to sprintf (#149)
1 parent 300c41a commit b9b53e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Matcher/TextMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function match($value, $pattern) : bool
5454
try {
5555
$patternRegex = $this->replacePlaceholderWithPatternRegexes($patternRegex, $patternsReplacedWithRegex);
5656
} catch (UnknownTypeException $exception) {
57-
$this->error = \sprintf(\sprintf('Type pattern "%s" is not supported by TextMatcher.', $exception->getType()));
57+
$this->error = \sprintf('Type pattern "%s" is not supported by TextMatcher.', $exception->getType());
5858
return false;
5959
}
6060

0 commit comments

Comments
 (0)