From 2f2e8ecf34027a239018d3b90dda7c5c644e375e Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Fri, 20 Oct 2017 21:45:27 -0700 Subject: [PATCH] Fix unused argument in sprintf expression in CacheControl Not clear on the impact, this was detected via static analysis. --- src/Header/CacheControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Header/CacheControl.php b/src/Header/CacheControl.php index e1cda1b712..65d3dd3530 100644 --- a/src/Header/CacheControl.php +++ b/src/Header/CacheControl.php @@ -39,7 +39,7 @@ public static function fromString($headerLine) // check to ensure proper header type for this factory if (strtolower($name) !== 'cache-control') { throw new Exception\InvalidArgumentException(sprintf( - 'Invalid header line for Cache-Control string: ""', + 'Invalid header line for Cache-Control string: "%s"', $name )); }