Skip to content

[DI] deprecate the strict attribute #21058

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
Jan 30, 2017
Merged

[DI] deprecate the strict attribute #21058

merged 1 commit into from
Jan 30, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Dec 27, 2016

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #20938 (comment)
License MIT
Doc PR

@stof
Copy link
Member

stof commented Dec 27, 2016

👍

@nicolas-grekas
Copy link
Member

My concerns are here: #20938 (comment)
So if you considered them but still think this should be the way to go, I'm OK.
(which means I'm +0 :) )

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Dec 27, 2016
@nicolas-grekas
Copy link
Member

👍
if bundles need to support SF 2 & 4 and are bothered about this "strict" attribute, they can very well have two different xml files.

@stof
Copy link
Member

stof commented Jan 30, 2017

if they need to support both 2.x and 4.x, they cannot rely on the strict=false feature anyway (as it is always string in Symfony 3+), and so they can omit the attribute even in 2.x (as the default behavior of 2.x is the one we kept).

👍 about this.

@fabpot
Copy link
Member

fabpot commented Jan 30, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 49cb4db into symfony:master Jan 30, 2017
fabpot added a commit that referenced this pull request Jan 30, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] deprecate the strict attribute

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

Commits
-------

49cb4db [DI] deprecate the strict attribute
@xabbuh xabbuh deleted the pr-20938 branch January 30, 2017 15:31
fabpot added a commit that referenced this pull request Feb 20, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

add missing changelog for deprecated strict attribute

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

since #21058, 3.3 triggers a deprecation when using the strict attribute. luckily wouter managed to find the reason and we figured out we can simply delete the attribute. having an upgrade file entry would make it easier to find the reason for the deprecation and be sure what to do. (assuming i understood the implications correctly)

Commits
-------

2c5f879 add missing changelog for deprecated strict attribute
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