Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16d7ef1

Browse files
committed
[BrowserKit] Fixed missing sprintf in InvalidArgumentException
1 parent 713f623 commit 16d7ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static function fromString($cookie, $url = null)
127127
$parts = explode(';', $cookie);
128128

129129
if (false === strpos($parts[0], '=')) {
130-
throw new \InvalidArgumentException('The cookie string "%s" is not valid.');
130+
throw new \InvalidArgumentException(sprintf('The cookie string "%s" is not valid.', $cookie));
131131
}
132132

133133
list($name, $value) = explode('=', array_shift($parts), 2);

0 commit comments

Comments
 (0)