From a834c2fd6ce1ee79ae7812abae1e3b9ad31d8caa Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 15 Dec 2013 13:21:03 +0100 Subject: [PATCH] [BrowserKit] Add missing exception message parameter | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - --- src/Symfony/Component/BrowserKit/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index 1e2c64ce63f5..bce5613cf7a6 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -127,7 +127,7 @@ public static function fromString($cookie, $url = null) $parts = explode(';', $cookie); if (false === strpos($parts[0], '=')) { - throw new \InvalidArgumentException('The cookie string "%s" is not valid.'); + throw new \InvalidArgumentException(sprintf('The cookie string "%s" is not valid.', $parts[0])); } list($name, $value) = explode('=', array_shift($parts), 2);