You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@
16
16
17
17
- FilteredStream::getReadFilter The read filter is internal and should never be used by consuming code.
18
18
- FilteredStream::getWriteFilter We did not implement writing to the streams at all. And if we do, the filter is an internal information and should not be used by consuming code.
19
-
- Attributes validation during Cookie instantiation is deprecated and will be removed in 2.0. Use the new `Cookie::isValid` to check if attributes are valid.
Copy file name to clipboardExpand all lines: src/Cookie.php
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ final class Cookie
63
63
* @param bool $httpOnly
64
64
* @param \DateTime|null $expires Expires attribute is HTTP 1.0 only and should be avoided.
65
65
*
66
-
* @throws \InvalidArgumentException If name, value or max age is not valid. Attributes validation during instantiation is deprecated since 1.5 and will be removed in 2.0.
66
+
* @throws \InvalidArgumentException If name, value or max age is not valid.
67
67
*/
68
68
publicfunction__construct(
69
69
$name,
@@ -75,14 +75,9 @@ public function __construct(
75
75
$httpOnly = false,
76
76
\DateTime$expires = null
77
77
) {
78
-
try {
79
-
$this->validateName($name);
80
-
$this->validateValue($value);
81
-
$this->validateMaxAge($maxAge);
82
-
} catch (\InvalidArgumentException$e) {
83
-
@trigger_error('Attributes validation during instantiation is deprecated since 1.5 and will be removed in 2.0', E_USER_DEPRECATED);
0 commit comments