@@ -263,6 +263,8 @@ public function __construct(array $query = [], array $request = [], array $attri
263263 * @param array $files The FILES parameters
264264 * @param array $server The SERVER parameters
265265 * @param string|resource|null $content The raw body data
266+ *
267+ * @return void
266268 */
267269 public function initialize (array $ query = [], array $ request = [], array $ attributes = [], array $ cookies = [], array $ files = [], array $ server = [], $ content = null )
268270 {
@@ -417,6 +419,8 @@ public static function create(string $uri, string $method = 'GET', array $parame
417419 * This is mainly useful when you need to override the Request class
418420 * to keep BC with an existing system. It should not be used for any
419421 * other purpose.
422+ *
423+ * @return void
420424 */
421425 public static function setFactory (?callable $ callable )
422426 {
@@ -521,6 +525,8 @@ public function __toString(): string
521525 *
522526 * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
523527 * $_FILES is never overridden, see rfc1867
528+ *
529+ * @return void
524530 */
525531 public function overrideGlobals ()
526532 {
@@ -561,6 +567,8 @@ public function overrideGlobals()
561567 *
562568 * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
563569 * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
570+ *
571+ * @return void
564572 */
565573 public static function setTrustedProxies (array $ proxies , int $ trustedHeaderSet )
566574 {
@@ -602,6 +610,8 @@ public static function getTrustedHeaderSet(): int
602610 * You should only list the hosts you manage using regexs.
603611 *
604612 * @param array $hostPatterns A list of trusted host patterns
613+ *
614+ * @return void
605615 */
606616 public static function setTrustedHosts (array $ hostPatterns )
607617 {
@@ -648,6 +658,8 @@ public static function normalizeQueryString(?string $qs): string
648658 * If these methods are not protected against CSRF, this presents a possible vulnerability.
649659 *
650660 * The HTTP method can only be overridden when the real HTTP method is POST.
661+ *
662+ * @return void
651663 */
652664 public static function enableHttpMethodParameterOverride ()
653665 {
@@ -733,6 +745,9 @@ public function hasSession(bool $skipIfUninitialized = false): bool
733745 return null !== $ this ->session && (!$ skipIfUninitialized || $ this ->session instanceof SessionInterface);
734746 }
735747
748+ /**
749+ * @return void
750+ */
736751 public function setSession (SessionInterface $ session )
737752 {
738753 $ this ->session = $ session ;
@@ -743,7 +758,7 @@ public function setSession(SessionInterface $session)
743758 *
744759 * @param callable(): SessionInterface $factory
745760 */
746- public function setSessionFactory (callable $ factory )
761+ public function setSessionFactory (callable $ factory ): void
747762 {
748763 $ this ->session = $ factory ;
749764 }
@@ -1153,6 +1168,8 @@ public function getHost(): string
11531168
11541169 /**
11551170 * Sets the request method.
1171+ *
1172+ * @return void
11561173 */
11571174 public function setMethod (string $ method )
11581175 {
@@ -1274,6 +1291,8 @@ public function getFormat(?string $mimeType): ?string
12741291 * Associates a format with mime types.
12751292 *
12761293 * @param string|string[] $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
1294+ *
1295+ * @return void
12771296 */
12781297 public function setFormat (?string $ format , string |array $ mimeTypes )
12791298 {
@@ -1304,6 +1323,8 @@ public function getRequestFormat(?string $default = 'html'): ?string
13041323
13051324 /**
13061325 * Sets the request format.
1326+ *
1327+ * @return void
13071328 */
13081329 public function setRequestFormat (?string $ format )
13091330 {
@@ -1334,6 +1355,8 @@ public function getContentTypeFormat(): ?string
13341355
13351356 /**
13361357 * Sets the default locale.
1358+ *
1359+ * @return void
13371360 */
13381361 public function setDefaultLocale (string $ locale )
13391362 {
@@ -1354,6 +1377,8 @@ public function getDefaultLocale(): string
13541377
13551378 /**
13561379 * Sets the locale.
1380+ *
1381+ * @return void
13571382 */
13581383 public function setLocale (string $ locale )
13591384 {
@@ -1858,6 +1883,8 @@ protected function preparePathInfo(): string
18581883
18591884 /**
18601885 * Initializes HTTP request formats.
1886+ *
1887+ * @return void
18611888 */
18621889 protected static function initializeFormats ()
18631890 {
0 commit comments