Skip to content

Commit

Permalink
Deprecate setCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwong committed Oct 21, 2021
1 parent e75791e commit 4fe7bc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Prince.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Prince
private $noAuthPreemptive;
private $httpProxy;
private $httpTimeout;
private $cookie;
private $cookie; // Deprecated.
private $cookies;
private $cookieJar;
private $sslCaCert;
Expand Down Expand Up @@ -156,7 +156,7 @@ public function __construct($exePath)
$this->noAuthPreemptive = false;
$this->httpProxy = '';
$this->httpTimeout = 0;
$this->cookie = '';
$this->cookie = ''; // Deprecated.
$this->cookies = '';
$this->cookieJar = '';
$this->sslCaCert = '';
Expand Down Expand Up @@ -759,8 +759,11 @@ public function clearCookies()
}

/**
* [DEPRECATED]
* Specify a Set-Cookie header value.
*
* @deprecated 1.2.0 Prefer `addCookie` instead.
*
* @param string $cookie The Set-Cookie header value.
* @return void
*/
Expand Down

0 comments on commit 4fe7bc1

Please sign in to comment.