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

[Form] forward valid numeric values to transform()#30126

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.4fromxabbuh:issue-30114
Feb 13, 2019

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30114
LicenseMIT
Doc PR

@xabbuh
Copy link
MemberAuthor

@Rubinum@dbrumann@syastrebov I could need your feedback here as you all have been involved in#24036 and#26781.

thrownewTransformationFailedException('Expected a numeric.');
}
$value= (string) ($value /$this->divisor);
$value/=$this->divisor;
Copy link
Contributor

Choose a reason for hiding this comment

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

I have tried forcing a rounding issue with and without casting to string and also by reverse transforming either value and I can't find any differences in the behavior. I can't remember why we put the string cast there, but I assume it was just for safety. This change looks good to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

@xabbuh checked the referenced issue and this fix, looks good to me, yes, doesn't seem casting to string was added on specific purpose here, so i think it should be fine.

xabbuh reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit3be0d35 intosymfony:3.4Feb 13, 2019
fabpot added a commit that referenced this pull requestFeb 13, 2019
…bbuh)This PR was merged into the 3.4 branch.Discussion----------[Form] forward valid numeric values to transform()| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#30114| License       | MIT| Doc PR        |Commits-------3be0d35 forward valid numeric values to transform()
@xabbuhxabbuh deleted the issue-30114 branchFebruary 13, 2019 07:47
This was referencedMar 3, 2019
@fabpotfabpot mentioned this pull requestMay 9, 2019
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

@OskarStarkOskarStarkOskarStark approved these changes

+3 more reviewers

@syastrebovsyastrebovsyastrebov left review comments

@vudaltsovvudaltsovvudaltsov approved these changes

@dbrumanndbrumanndbrumann approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

8 participants

@xabbuh@fabpot@nicolas-grekas@OskarStark@syastrebov@vudaltsov@dbrumann@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp