Skip to content

[HttpFoundation] Deprecate $deep parameter on ParameterBag #16706

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
Nov 27, 2015

Conversation

nicolas-grekas
Copy link
Member

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

}
}
if (is_bool($filter) || !isset($filters[$filter]) || is_array($deep)) {
@trigger_error('Passing the $deep boolean as 3rd argument of the '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

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

to pass it as last argument is also deprecated. this can be important when we add new arguments later.

Copy link
Member Author

Choose a reason for hiding this comment

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

message updated, ok for you?

@nicolas-grekas nicolas-grekas merged commit f4f082e into symfony:2.8 Nov 27, 2015
nicolas-grekas added a commit that referenced this pull request Nov 27, 2015
…rBag (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[HttpFoundation] Deprecate $deep parameter on ParameterBag

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

Commits
-------

f4f082e [HttpFoundation] Deprecate $deep parameter on ParameterBag
@nicolas-grekas nicolas-grekas deleted the deprec-deep branch November 27, 2015 11:57
This was referenced Nov 30, 2015
@sstok
Copy link
Contributor

sstok commented Dec 9, 2015

FYI this is not documented in UPGRADE-3.0.

With a possible alternative like the PropertyAccess component.

@stof
Copy link
Member

stof commented Dec 9, 2015

@sstok we already have an issue saying that the upgrade file is incomplete

@sstok
Copy link
Contributor

sstok commented Dec 9, 2015

#16667 found it, should we keep a list in that issue about things that are missing? (so that anyone willing can tackle them) (or is there a google docs page where this is tracked?).

The documentation also still mentions the old parameter.

@stof
Copy link
Member

stof commented Dec 9, 2015

@sstok in several places, the component changelogs are listing deprecations. This will be the easy part to synchronize (it is a matter of checking whether all changelog entries are listed). but the changelog files themselves might be incomplete. In this case, it would require checking the codebase for deprecations

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.

5 participants