Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] remove deprecated code paths#33697

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromxabbuh:pr-33584-remove-deprecations
Sep 25, 2019

Conversation

@xabbuh
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

@fabpot
Copy link
Member

Thank you@xabbuh.

fabpot added a commit that referenced this pull requestSep 25, 2019
This PR was merged into the 5.0-dev branch.Discussion----------[Security] remove deprecated code paths| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |Commits-------2b6ce01 remove deprecated code paths
@fabpotfabpot merged commit2b6ce01 intosymfony:masterSep 25, 2019
@ostrolucky
Copy link
Contributor

shouldn't the change be reflected in docblock?

@xabbuh
Copy link
MemberAuthor

@ostrolucky Can you create a PR (targetting the4.4 branch)?

}

return$this->accessDecisionManager->decide($token,$attributes,$subject);
return$this->accessDecisionManager->decide($token,(array)$attributes,$subject);
Copy link
Contributor

Choose a reason for hiding this comment

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

An array cast doesn't work here since$attributes can be an object, we could use[$attributes] instead since it can't be an array.

Choose a reason for hiding this comment

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

only if $attributes is not null
would you mind sending a PR (with a test case ideally)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if$attributes isnull, we should pass[null] todecide.

PR created :#33721

fabpot added a commit that referenced this pull requestSep 26, 2019
This PR was merged into the 5.0-dev branch.Discussion----------[Security] Fix isGranted with object attribute| Q             | A| ------------- | ---| Branch?       | master (the added test could be backported to older branches)| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |#33697 (comment)| License       | MIT| Doc PR        |Fix calls to isGranted with `$attribute` beeing an object.Commits-------3a5fd48 Fix isGranted with object attribute
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@jvasseurjvasseurjvasseur left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.0

Development

Successfully merging this pull request may close these issues.

6 participants

@xabbuh@fabpot@ostrolucky@nicolas-grekas@jvasseur@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp