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

[PropertyInfo] Prevent returning int values in some cases#22426

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:2.8fromdunglas:fix_api_platform_282
Apr 13, 2017

Conversation

@dunglas
Copy link
Member

@dunglasdunglas commentedApr 13, 2017
edited
Loading

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsapi-platform/api-platform#282,api-platform/core#1055
LicenseMIT
Doc PRn/a

PHP automatically converts array keys to an int if and only if it looks like an int... When a getter looks likeget123, the ReflectionExtractor returns an array containing an int instead of a string. This PR fixes this.

teohhanhui reacted with hooray emoji
@fabpot
Copy link
Member

Thank you@dunglas.

@fabpotfabpot merged commitb190ec2 intosymfony:2.8Apr 13, 2017
fabpot added a commit that referenced this pull requestApr 13, 2017
…(dunglas)This PR was merged into the 2.8 branch.Discussion----------[PropertyInfo] Prevent returning int values in some cases| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets |api-platform/api-platform#282,api-platform/core#1055| License       | MIT| Doc PR        | n/aPHP automatically converts array keys to an int if and only if it looks like an int... When a getter looks like `get123`, the ReflectionExtractor returns an array containing an int instead of a string. This PR fixes this.Commits-------b190ec2 [PropertyInfo] Prevent returning int values in some cases.
@dunglasdunglas deleted the fix_api_platform_282 branchApril 13, 2017 20:17
This was referencedMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@dunglas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp