[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 | -
This commit is contained in:
parent
1bc2d9f00e
commit
a834c2fd6c
@ -127,7 +127,7 @@ class Cookie
|
||||
$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);
|
||||
|
Reference in New Issue
Block a user