Skip to content

Commit 5fc3038

Browse files
Merge branch '5.4' into 6.2
* 5.4: minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) [Workflow] remove new lines from workflow metadata Fix phpdocs in HttpClient, HttpFoundation, HttpKernel, Intl components [WebProfilerBundle] Render original (not encoded) email headers
2 parents aa94bfe + 3bb6ee5 commit 5fc3038

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed

Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static function create(string $name, string $value = null, int|string|\Da
8383
* @param string $name The name of the cookie
8484
* @param string|null $value The value of the cookie
8585
* @param int|string|\DateTimeInterface $expire The time the cookie expires
86-
* @param string $path The path on the server in which the cookie will be available on
86+
* @param string|null $path The path on the server in which the cookie will be available on
8787
* @param string|null $domain The domain that the cookie is available to
8888
* @param bool|null $secure Whether the client should send back the cookie only over HTTPS or null to auto-enable this when the request is already using HTTPS
8989
* @param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol

Request.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ public static function setFactory(?callable $callable)
426426
/**
427427
* Clones a request and overrides some of its parameters.
428428
*
429-
* @param array $query The GET parameters
430-
* @param array $request The POST parameters
431-
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
432-
* @param array $cookies The COOKIE parameters
433-
* @param array $files The FILES parameters
434-
* @param array $server The SERVER parameters
429+
* @param array|null $query The GET parameters
430+
* @param array|null $request The POST parameters
431+
* @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
432+
* @param array|null $cookies The COOKIE parameters
433+
* @param array|null $files The FILES parameters
434+
* @param array|null $server The SERVER parameters
435435
*/
436436
public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null): static
437437
{

Session/SessionInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ public function setName(string $name);
5353
* Clears all session attributes and flashes and regenerates the
5454
* session and deletes the old session from persistence.
5555
*
56-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
57-
* will leave the system settings unchanged, 0 sets the cookie
58-
* to expire with browser session. Time is in seconds, and is
59-
* not a Unix timestamp.
56+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
57+
* will leave the system settings unchanged, 0 sets the cookie
58+
* to expire with browser session. Time is in seconds, and is
59+
* not a Unix timestamp.
6060
*/
6161
public function invalidate(int $lifetime = null): bool;
6262

6363
/**
6464
* Migrates the current session to a new session id while maintaining all
6565
* session attributes.
6666
*
67-
* @param bool $destroy Whether to delete the old session or leave it to garbage collection
68-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
69-
* will leave the system settings unchanged, 0 sets the cookie
70-
* to expire with browser session. Time is in seconds, and is
71-
* not a Unix timestamp.
67+
* @param bool $destroy Whether to delete the old session or leave it to garbage collection
68+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
69+
* will leave the system settings unchanged, 0 sets the cookie
70+
* to expire with browser session. Time is in seconds, and is
71+
* not a Unix timestamp.
7272
*/
7373
public function migrate(bool $destroy = false, int $lifetime = null): bool;
7474

Session/Storage/Handler/NativeFileSessionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
class NativeFileSessionHandler extends \SessionHandler
2020
{
2121
/**
22-
* @param string $savePath Path of directory to save session files
23-
* Default null will leave setting as defined by PHP.
24-
* '/path', 'N;/path', or 'N;octal-mode;/path
22+
* @param string|null $savePath Path of directory to save session files
23+
* Default null will leave setting as defined by PHP.
24+
* '/path', 'N;/path', or 'N;octal-mode;/path
2525
*
2626
* @see https://php.net/session.configuration#ini.session.save-path for further details.
2727
*

Session/Storage/MetadataBag.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public function getLifetime(): int
7878
/**
7979
* Stamps a new session's metadata.
8080
*
81-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
82-
* will leave the system settings unchanged, 0 sets the cookie
83-
* to expire with browser session. Time is in seconds, and is
84-
* not a Unix timestamp.
81+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
82+
* will leave the system settings unchanged, 0 sets the cookie
83+
* to expire with browser session. Time is in seconds, and is
84+
* not a Unix timestamp.
8585
*/
8686
public function stampNew(int $lifetime = null)
8787
{

Session/Storage/SessionStorageInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ public function setName(string $name);
7272
* Otherwise session data could get lost again for concurrent requests with the
7373
* new ID. One result could be that you get logged out after just logging in.
7474
*
75-
* @param bool $destroy Destroy session when regenerating?
76-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
77-
* will leave the system settings unchanged, 0 sets the cookie
78-
* to expire with browser session. Time is in seconds, and is
79-
* not a Unix timestamp.
75+
* @param bool $destroy Destroy session when regenerating?
76+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
77+
* will leave the system settings unchanged, 0 sets the cookie
78+
* to expire with browser session. Time is in seconds, and is
79+
* not a Unix timestamp.
8080
*
8181
* @throws \RuntimeException If an error occurs while regenerating this storage
8282
*/

0 commit comments

Comments
 (0)