Skip to content

Conversation

MaximePinot
Copy link
Contributor

Q A
Branch? 5.4 (this param is not type-hinted on 4.4)
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

I think this condition can be removed since the $type parameter is type-hinted: string $type = null.

@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 6.1 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

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

For 6.1 possibly because this is not a bugfix.

@MaximePinot MaximePinot changed the base branch from 5.4 to 6.1 April 15, 2022 10:03
@fabpot fabpot modified the milestones: 5.4, 6.1 Apr 15, 2022
@fabpot
Copy link
Member

fabpot commented Apr 15, 2022

Good catch, thanks @MaximePinot.

@fabpot fabpot merged commit 2c3bd0a into symfony:6.1 Apr 15, 2022
@MaximePinot MaximePinot deleted the patch-1 branch April 15, 2022 10:27
nicolas-grekas added a commit that referenced this pull request Apr 22, 2022
This PR was merged into the 6.1 branch.

Discussion
----------

[Form] Remove useless condition

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | -
| License       | MIT
| Doc PR        | -

Same as #46050.  This condition can be removed since the `$type` parameter is type-hinted: `string $type = null`.

Commits
-------

064ee4c Remove useless condition
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