Skip to content

Commit 3bb6ee5

Browse files
committed
Fix phpdocs in HttpClient, HttpFoundation, HttpKernel, Intl components
1 parent 16017a2 commit 3bb6ee5

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
@@ -80,7 +80,7 @@ public static function create(string $name, string $value = null, $expire = 0, ?
8080
* @param string $name The name of the cookie
8181
* @param string|null $value The value of the cookie
8282
* @param int|string|\DateTimeInterface $expire The time the cookie expires
83-
* @param string $path The path on the server in which the cookie will be available on
83+
* @param string|null $path The path on the server in which the cookie will be available on
8484
* @param string|null $domain The domain that the cookie is available to
8585
* @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
8686
* @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
@@ -439,12 +439,12 @@ public static function setFactory(?callable $callable)
439439
/**
440440
* Clones a request and overrides some of its parameters.
441441
*
442-
* @param array $query The GET parameters
443-
* @param array $request The POST parameters
444-
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
445-
* @param array $cookies The COOKIE parameters
446-
* @param array $files The FILES parameters
447-
* @param array $server The SERVER parameters
442+
* @param array|null $query The GET parameters
443+
* @param array|null $request The POST parameters
444+
* @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
445+
* @param array|null $cookies The COOKIE parameters
446+
* @param array|null $files The FILES parameters
447+
* @param array|null $server The SERVER parameters
448448
*
449449
* @return static
450450
*/

Session/SessionInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function setName(string $name);
5959
* Clears all session attributes and flashes and regenerates the
6060
* session and deletes the old session from persistence.
6161
*
62-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
63-
* will leave the system settings unchanged, 0 sets the cookie
64-
* to expire with browser session. Time is in seconds, and is
65-
* not a Unix timestamp.
62+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
63+
* will leave the system settings unchanged, 0 sets the cookie
64+
* to expire with browser session. Time is in seconds, and is
65+
* not a Unix timestamp.
6666
*
6767
* @return bool
6868
*/
@@ -72,11 +72,11 @@ public function invalidate(int $lifetime = null);
7272
* Migrates the current session to a new session id while maintaining all
7373
* session attributes.
7474
*
75-
* @param bool $destroy Whether to delete the old session or leave it to garbage collection
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 Whether to delete the old session or leave it to garbage collection
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
* @return bool
8282
*/

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
@@ -95,10 +95,10 @@ public function getLifetime()
9595
/**
9696
* Stamps a new session's metadata.
9797
*
98-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
99-
* will leave the system settings unchanged, 0 sets the cookie
100-
* to expire with browser session. Time is in seconds, and is
101-
* not a Unix timestamp.
98+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
99+
* will leave the system settings unchanged, 0 sets the cookie
100+
* to expire with browser session. Time is in seconds, and is
101+
* not a Unix timestamp.
102102
*/
103103
public function stampNew(int $lifetime = null)
104104
{

Session/Storage/SessionStorageInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public function setName(string $name);
8080
* Otherwise session data could get lost again for concurrent requests with the
8181
* new ID. One result could be that you get logged out after just logging in.
8282
*
83-
* @param bool $destroy Destroy session when regenerating?
84-
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
85-
* will leave the system settings unchanged, 0 sets the cookie
86-
* to expire with browser session. Time is in seconds, and is
87-
* not a Unix timestamp.
83+
* @param bool $destroy Destroy session when regenerating?
84+
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
85+
* will leave the system settings unchanged, 0 sets the cookie
86+
* to expire with browser session. Time is in seconds, and is
87+
* not a Unix timestamp.
8888
*
8989
* @return bool
9090
*

0 commit comments

Comments
 (0)