Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 2f2e8ec

Browse files
committed
Fix unused argument in sprintf expression in CacheControl
Not clear on the impact, this was detected via static analysis.
1 parent b520987 commit 2f2e8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Header/CacheControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function fromString($headerLine)
3939
// check to ensure proper header type for this factory
4040
if (strtolower($name) !== 'cache-control') {
4141
throw new Exception\InvalidArgumentException(sprintf(
42-
'Invalid header line for Cache-Control string: ""',
42+
'Invalid header line for Cache-Control string: "%s"',
4343
$name
4444
));
4545
}

0 commit comments

Comments
 (0)