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

[HttpFoundation] Define PHPDoc type for Response::$statusTexts #59373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2025
Merged

[HttpFoundation] Define PHPDoc type for Response::$statusTexts #59373

merged 1 commit into from
Jan 6, 2025

Conversation

neilime
Copy link
Contributor

@neilime neilime commented Jan 6, 2025

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.

@carsonbot carsonbot added this to the 7.2 milestone Jan 6, 2025
@xabbuh xabbuh modified the milestones: 7.2, 7.3 Jan 6, 2025
@carsonbot carsonbot changed the title chore(HttpFoundation): define phpdoc type for Response "statusTexts" [HttpFoundation] chore(HttpFoundation): define phpdoc type for Response "statusTexts" Jan 6, 2025
@nicolas-grekas nicolas-grekas changed the title [HttpFoundation] chore(HttpFoundation): define phpdoc type for Response "statusTexts" [HttpFoundation] Define phpdoc type for Response "statusTexts" Jan 6, 2025
@nicolas-grekas nicolas-grekas changed the base branch from 7.2 to 7.3 January 6, 2025 18:44
@nicolas-grekas nicolas-grekas changed the base branch from 7.3 to 7.2 January 6, 2025 18:44
@nicolas-grekas nicolas-grekas removed the Bug label Jan 6, 2025
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me (but that's not a bug so it's for 7.3)

@neilime
Copy link
Contributor Author

neilime commented Jan 6, 2025

@nicolas-grekas Do you want I modify this PR to go to 7.3 or I can create a new one or something else?

@nicolas-grekas
Copy link
Member

Nothing to do on your side, we'll do it while merging.

@GromNaN GromNaN changed the base branch from 7.2 to 7.3 January 6, 2025 18:49
@GromNaN GromNaN changed the base branch from 7.3 to 7.2 January 6, 2025 18:49
As `Symfony\Component\HttpFoundation\Response::$statusTexts` is public, it can be used by everyone. Some of us can use 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.
@fabpot fabpot changed the base branch from 7.2 to 7.3 January 6, 2025 20:20
@fabpot
Copy link
Member

fabpot commented Jan 6, 2025

Thank you @neilime.

@fabpot fabpot merged commit bbe1b6e into symfony:7.3 Jan 6, 2025
9 of 10 checks passed
@OskarStark OskarStark changed the title [HttpFoundation] Define phpdoc type for Response "statusTexts" [HttpFoundation] Define phpdoc type for Response statusTexts Jan 6, 2025
@OskarStark OskarStark changed the title [HttpFoundation] Define phpdoc type for Response statusTexts [HttpFoundation] Define phpdoc type for Response::$statusTexts Jan 6, 2025
@OskarStark OskarStark changed the title [HttpFoundation] Define phpdoc type for Response::$statusTexts [HttpFoundation] Define PHPDoc type for Response::$statusTexts Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.