Upgrade to rc5
This commit is contained in:
@@ -56,14 +56,8 @@ class Cookie
|
||||
$_COOKIE[$key] = $value;
|
||||
|
||||
// store the cookie
|
||||
// the array syntax is only supported by PHP 7.3+
|
||||
// TODO: Always use the first alternative when support for PHP 7.2 is dropped
|
||||
if (version_compare(PHP_VERSION, '7.3.0', '>=') === true) {
|
||||
$options = compact('expires', 'path', 'domain', 'secure', 'httponly', 'samesite');
|
||||
return setcookie($key, $value, $options);
|
||||
} else {
|
||||
return setcookie($key, $value, $expires, $path, $domain, $secure, $httponly);
|
||||
}
|
||||
$options = compact('expires', 'path', 'domain', 'secure', 'httponly', 'samesite');
|
||||
return setcookie($key, $value, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -93,7 +93,7 @@ class Route
|
||||
* @param Closure $action
|
||||
* @param array $attributes
|
||||
*/
|
||||
public function __construct($pattern, $method = 'GET', Closure $action, array $attributes = [])
|
||||
public function __construct($pattern, $method, Closure $action, array $attributes = [])
|
||||
{
|
||||
$this->action = $action;
|
||||
$this->attributes = $attributes;
|
||||
|
Reference in New Issue
Block a user