Skip to content

Commit 5f11947

Browse files
committed
Use short array deconstruction syntax.
1 parent 99b640f commit 5f11947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static function fromString($cookie, $url = null)
136136
throw new \InvalidArgumentException(sprintf('The cookie string "%s" is not valid.', $parts[0]));
137137
}
138138

139-
list($name, $value) = explode('=', array_shift($parts), 2);
139+
[$name, $value] = explode('=', array_shift($parts), 2);
140140

141141
$values = [
142142
'name' => trim($name),

0 commit comments

Comments
 (0)