Upgrade to 3.5.1
This commit is contained in:
@@ -98,7 +98,8 @@ class Cookie
|
||||
*/
|
||||
public static function forever(string $key, string $value, array $options = []): bool
|
||||
{
|
||||
$options['lifetime'] = 253402214400; // 9999-12-31
|
||||
// 9999-12-31 if supported (lower on 32-bit servers)
|
||||
$options['lifetime'] = min(253402214400, PHP_INT_MAX);
|
||||
return static::set($key, $value, $options);
|
||||
}
|
||||
|
||||
|
@@ -119,6 +119,12 @@ class Params extends Query
|
||||
* @param bool $leadingSlash
|
||||
* @param bool $trailingSlash
|
||||
* @return string|null
|
||||
*
|
||||
* @todo The argument $leadingSlash is incompatible with
|
||||
* Query::toString($questionMark = false); the Query class
|
||||
* should be extracted into a common parent class for both
|
||||
* Query and Params
|
||||
* @psalm-suppress ParamNameMismatch
|
||||
*/
|
||||
public function toString($leadingSlash = false, $trailingSlash = false): string
|
||||
{
|
||||
|
@@ -129,7 +129,7 @@ class Uri
|
||||
/**
|
||||
* Creates a new URI object
|
||||
*
|
||||
* @param array $props
|
||||
* @param array|string $props
|
||||
* @param array $inject
|
||||
*/
|
||||
public function __construct($props = [], array $inject = [])
|
||||
|
@@ -161,7 +161,7 @@ class Url
|
||||
* @param string|array|null $url
|
||||
* @param bool $leadingSlash
|
||||
* @param bool $trailingSlash
|
||||
* @return xtring
|
||||
* @return string
|
||||
*/
|
||||
public static function path($url = null, bool $leadingSlash = false, bool $trailingSlash = false): string
|
||||
{
|
||||
|
Reference in New Issue
Block a user