Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f9f7ff

Browse filesBrowse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix passing arguments to "Client" constructor
2 parents 1a9b93c + 136dadf commit 8f9f7ff
Copy full SHA for 8f9f7ff

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎components/browser_kit.rst

Copy file name to clipboardExpand all lines: components/browser_kit.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ into the client constructor::
190190
use Acme\Client;
191191

192192
// create cookies and add to cookie jar
193-
$cookieJar = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
193+
$cookie = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
194+
$cookieJar = new CookieJar();
195+
$cookieJar->set($cookie);
194196

195197
// create a client and set the cookies
196198
$client = new Client(array(), null, $cookieJar);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.