Skip to content

Conversation

@eliashaeussler
Copy link
Contributor

@eliashaeussler eliashaeussler commented Aug 31, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #...
License MIT

User inputs must be strings, otherwise they cannot be properly written to the php://memory stream (because of the str_contains check here: https://github.com/symfony/symfony/blob/v6.4.25/src/Symfony/Component/Console/Tester/TesterTrait.php#L173). Using the hardened typed annotation, static code analyzers may assist developers in using correct array values.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 7.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@OskarStark OskarStark modified the milestones: 6.4, 7.4 Aug 31, 2025
@OskarStark
Copy link
Contributor

This is considered a feature an must target 7.4 branch

@nicolas-grekas nicolas-grekas removed the Bug label Sep 1, 2025
Inputs must be strings, otherwise they cannot be properly written to the
`php://memory` stream. Using the hardened typed annotation, static code
analyzers may assist developers in using correct array values.
@nicolas-grekas nicolas-grekas changed the base branch from 6.4 to 7.4 September 1, 2025 13:42
@nicolas-grekas
Copy link
Member

Thank you @eliashaeussler.

@nicolas-grekas nicolas-grekas merged commit 83c2aec into symfony:7.4 Sep 1, 2025
10 of 12 checks passed
@eliashaeussler eliashaeussler deleted the fix/inputs branch September 1, 2025 13:45
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.

4 participants