Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bbe1b6e

Browse filesBrowse 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
Copy full SHA for bbe1b6e

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎src/Symfony/Component/HttpFoundation/Response.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Response.php
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.