Skip to content

Navigation Menu

Sign in
Appearance settings

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

Fix HeaderBag::all return value #282

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Seldaek
Copy link

@Seldaek Seldaek commented Jun 7, 2022

fixes #264

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

  1. I'd say there are more *Bag classes with the same behaviour, can you please update stubs for all of them?
  2. I'd say we should be able to remove this extension altogether with the help of conditional return types: https://github.com/phpstan/phpstan-symfony/blob/1.2.x/src/Type/Symfony/InputBagDynamicReturnTypeExtension.php

@Seldaek
Copy link
Author

Seldaek commented Jun 7, 2022

Yeah, if someone else has time to take this over to do a more comprehensive fix please feel free. I don't know when I'll get to it otherwise. This isn't very high on my list.

@VincentLanglet
Copy link
Contributor

For the record, the conditional type was accepted in Symfony 6.3, cf symfony/symfony#49007

@Seldaek Seldaek closed this Jan 27, 2023
@Seldaek
Copy link
Author

Seldaek commented Jan 27, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for HeaderBag::all()
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.