Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Removed legacy code and cleanup #32160

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
Jun 25, 2019
Merged

Removed legacy code and cleanup #32160

merged 1 commit into from
Jun 25, 2019

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Jun 24, 2019

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

See #32074, #26981

labels: HttpFoundation, Form, Security, SecurityBundle, Validator

@yceruto
Copy link
Member Author

yceruto commented Jun 24, 2019

There is a to be removed in 5.0 on this method:

* @internal since Symfony 4.4, to be removed in 5.0
*/
public static function validateName($name)

What's the planned alternative for this case?

@Tobion
Copy link
Contributor

Tobion commented Jun 25, 2019

The plan was to make the method private.

@yceruto
Copy link
Member Author

yceruto commented Jun 25, 2019

The plan was to make the method private.

@Tobion but it's used out there (ButtonBuilder):

FormConfigBuilder::validateName($name);

@nicolas-grekas nicolas-grekas added this to the 5.0 milestone Jun 25, 2019
@fabpot
Copy link
Member

fabpot commented Jun 25, 2019

Tests (low) are broken.

@yceruto
Copy link
Member Author

yceruto commented Jun 25, 2019

Mmm, I'm not sure why, the broken tests are being eliminated here 🤔

@yceruto
Copy link
Member Author

yceruto commented Jun 25, 2019

Tests green.

@fabpot
Copy link
Member

fabpot commented Jun 25, 2019

Thank you @yceruto.

@fabpot fabpot merged commit 7b99fb4 into symfony:master Jun 25, 2019
fabpot added a commit that referenced this pull request Jun 25, 2019
This PR was squashed before being merged into the 5.0-dev branch (closes #32160).

Discussion
----------

Removed legacy code and cleanup

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

See #32074, #26981

labels: `HttpFoundation`, `Form`, `Security`, `SecurityBundle`, `Validator`

Commits
-------

7b99fb4 Removed legacy code and cleanup
@yceruto yceruto deleted the cleanup branch June 25, 2019 18:30
@Tobion
Copy link
Contributor

Tobion commented Jun 25, 2019

@yceruto see #32177 and #32178

fabpot added a commit that referenced this pull request Jun 26, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] remove comment about to-be-removed method

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets |
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

it is used in master by ButtonBuilder, see #32160 (comment)

Commits
-------

b80ce9a [Form] remove comment about to-be-removed method as it is used in master by ButtonBuilder
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