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

[PropertyAccess] Add Property Path to Exception Message#27586

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:masterfromowsy:property-access-exception
Jun 25, 2018
Merged

[PropertyAccess] Add Property Path to Exception Message#27586

fabpot merged 1 commit intosymfony:masterfromowsy:property-access-exception
Jun 25, 2018

Conversation

@rodnaph
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsNone
LicenseMIT
Doc PRNone

When an exception is thrown writing a property it is not currently obvious which path is at fault (eg.Expected argument of type "%s", "%s" given - but where?). This patch appends the current property path to the exception so it is clear which path caused the error (eg.Expected argument of type "%s", "%s" given at property path "foo.bar")

bendavies, ro0NL, and apfelbox reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@rodnaph.

@fabpotfabpot merged commit473a025 intosymfony:masterJun 25, 2018
fabpot added a commit that referenced this pull requestJun 25, 2018
…e (rodnaph)This PR was merged into the 4.2-dev branch.Discussion----------[PropertyAccess] Add Property Path to Exception Message| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | None| License       | MIT| Doc PR        | NoneWhen an exception is thrown writing a property it is not currently obvious which path is at fault (eg. `Expected argument of type "%s", "%s" given` - but where?). This patch appends the current property path to the exception so it is clear which path caused the error (eg. `Expected argument of type "%s", "%s" given at property path "foo.bar"`)Commits-------473a025 add property path to exception message when error writing property
xabbuh added a commit to opensoftwareconsulting/rich-model-forms-bundle that referenced this pull requestAug 24, 2018
This PR was merged into the 0.1-dev branch.Discussion----------relax assertion on exception for forward compatseesymfony/symfony#27586Commits-------13414e2 relax assertion on exception for forward compat
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@ro0NLro0NLro0NL approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@rodnaph@fabpot@nicolas-grekas@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp