-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Deprecated class replacement #5665
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
Conversation
Assert\True class is deprecated since version 2.7 and will be removed in 3.0. Use the IsTrue class in the same namespace instead.
this should be applied in 2.3+ (the IsTrue class was introduced in 2.3.29+ as the support of PHP 7 was considered to be a bugfix) |
@stampycode although this pull request must be applied to another branch, you probably don't need to make any change. Our doc managers can switch the branch when merging, so let's wait to see what do they think about this. |
well, for me, it is a 👍. We should avoid using deprecated APIs in the doc |
Looks good @stampycode. Could you also make the changes for the |
Sure, want me to make the PR into branch 2.7, or somewhere else? |
These changes should be done in the 2.3 branch IMO, as the classes are available in 2.3.29+ (for PHP 7 support) |
Closing as this was re-opened with more changes in #5677 |
…ors in docs (Tim Stamp) This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5677). Discussion ---------- replacing deprecated usage of True, False, Null validators in docs related: #5665 Commits ------- 9a5ea56 Updating book examples to not use deprecated validation methods 627d74d Updated constraint reference docs for Null->IsNull, False->IsFalse, True->IsTrue a90ea7c Creating placeholder constraint rst docs for deprecated usage 639be4b Renaming constraint rst files to Is* to preserve edit history
Assert\True class is deprecated since version 2.7 and will be removed in 3.0. Use the IsTrue class in the same namespace instead.