Skip to content

Commit 5602fcc

Browse files
Use ??= more
1 parent 1a48159 commit 5602fcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CookieJar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ public function get(string $name, string $path = '/', string $domain = null): ?C
6767
*/
6868
public function expire(string $name, ?string $path = '/', string $domain = null)
6969
{
70-
if (null === $path) {
71-
$path = '/';
72-
}
70+
$path ??= '/';
7371

7472
if (empty($domain)) {
7573
// an empty domain means any domain

0 commit comments

Comments
 (0)