8000 minor #9783 [BrowserKit] Add missing exception message parameter (bicpi) · symfony/symfony@eed1db0 · GitHub
[go: up one dir, main page]

Skip to content

Commit eed1db0

Browse files
committed
minor #9783 [BrowserKit] Add missing exception message parameter (bicpi)
This PR was merged into the 2.3 branch. Discussion ---------- [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 | - Commits ------- a834c2f [BrowserKit] Add missing exception message parameter
2 parents d521215 + a834c2f commit eed1db0

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.', $parts[0]));
131131
}
132132

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

0 commit comments

Comments
 (0)
0