Skip to content

Commit

Permalink
Merge pull request #1 from 23G/fix-vsprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
bvweijen authored Jul 7, 2023
2 parents 9906d56 + 49a622d commit d03bf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Handler/ResponseHandlerSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function ensureHeaderIsCorrectlyCased(string $headerName)
if ($regexResult != self::REGEX_CHECK_FAILED) {
foreach ($matches[self::INDEX_FIRST] as $match) {
$matchUpper = strtoupper($match);
$headerName = preg_replace(vsprintf(self::REGEX_REPLACE, $match), $matchUpper, $headerName);
$headerName = preg_replace(sprintf(self::REGEX_REPLACE, $match), $matchUpper, $headerName);
}
}

Expand Down

0 comments on commit d03bf9d

Please sign in to comment.