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

[HttpKernel] Prevent calling method_exists() with non-string values#36901

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:3.4fromderrabus:bugfix/strict-method-exists
May 22, 2020

Conversation

@derrabus
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#36872
LicenseMIT
Doc PRN/A

On php 8,method_exists() will raise aTypeError if the first argument is neither an object or string. We do have a test case that calls theControllerResolver with integer1 as$controller. This test should work as expected again on php 8.

@fabpot
Copy link
Member

Thank you@derrabus.

@fabpotfabpot merged commit4a0d5f1 intosymfony:3.4May 22, 2020
@derrabusderrabus deleted the bugfix/strict-method-exists branchMay 22, 2020 17:01
nicolas-grekas added a commit that referenced this pull requestMay 24, 2020
This PR was merged into the 5.1 branch.Discussion----------Don't call method_exists() with non-objects.| Q             | A| ------------- | ---| Branch?       | 5.1| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |#36872| License       | MIT| Doc PR        | N/AFollowup to#36901.Commits-------9efb442 Don't call method_exists() with non-objects.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

@ycerutoycerutoyceruto approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

6 participants

@derrabus@fabpot@xabbuh@yceruto@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp