Skip to content

Commit bbe1b6e

Browse files
committed
minor #59373 [HttpFoundation] Define phpdoc type for Response "statusTexts" (neilime)
This PR was submitted for the 7.2 branch but it was merged into the 7.3 branch instead. Discussion ---------- [HttpFoundation] Define phpdoc type for Response "statusTexts" | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? |no | Deprecations? | no | Issues | none | License | MIT As `Symfony\Component\HttpFoundation\Response::$statusTexts` is public, it can be used by every projects. Some of them can use strict type analysis like PSALM or PHPStan... It is always useful, and for some of them mandatory to have a proper array typing to use this variable. Commits ------- 51499d2 chore(HttpFoundation): define phpdoc type for Response "statusTexts"
2 parents 0aed9fa + 51499d2 commit bbe1b6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class Response
121121
* (last updated 2021-10-01).
122122
*
123123
* Unless otherwise noted, the status code is defined in RFC2616.
124+
*
125+
* @var array<int, string>
124126
*/
125127
public static array $statusTexts = [
126128
100 => 'Continue',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy