Skip to content

Commit

Permalink
[BrowserKit] Add missing exception message parameter
Browse files Browse the repository at this point in the history
| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -
  • Loading branch information
bicpi committed Dec 15, 2013
1 parent 1bc2d9f commit a834c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/BrowserKit/Cookie.php
Expand Up @@ -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);
Expand Down

0 comments on commit a834c2f

Please sign in to comment.