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

[Validator] Use LogicException for missing Property Access Component in comparison constraints#32094

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:4.2fromLctrs:validator/logic-exception
Jun 22, 2019
Merged

Conversation

@Lctrs
Copy link
Contributor

QA
Branch?4.2
Bug fix?yes-ish
New feature?no
BC breaks?yes-ish
Deprecations?no
Tests pass?yes
Fixed ticketsN/A
LicenseMIT
Doc PRN/A

For consistency.


if (isset($options['propertyPath']) && !class_exists(PropertyAccess::class)) {
thrownewConstraintDefinitionException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.',\get_class($this)));
thrownewLogicException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.',\get_class($this)));
Copy link
Contributor

Choose a reason for hiding this comment

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

No tests to adjust? 🧐

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Well, tests are green, no ? 😄

More seriously, it appears that the constructors of the comparison constraints are not tested atm.

OskarStark reacted with laugh emoji
@ogizanagi
Copy link
Contributor

ogizanagi commentedJun 21, 2019
edited
Loading

Hmm, it should be fixed in 3.4 actually.

@Lctrs
Copy link
ContributorAuthor

Symfony\Component\Validator\Exception\LogicException has been introduced in4.2.

ogizanagi reacted with thumbs up emoji

@fabpot
Copy link
Member

Good catch, thanks@Lctrs.

@fabpotfabpot merged commit6ac2316 intosymfony:4.2Jun 22, 2019
fabpot added a commit that referenced this pull requestJun 22, 2019
… Component in comparison constraints (Lctrs)This PR was merged into the 4.2 branch.Discussion----------[Validator] Use LogicException for missing Property Access Component in comparison constraints| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes-ish| New feature?  | no| BC breaks?    | yes-ish| Deprecations? | no| Tests pass?   | yes| Fixed tickets | N/A| License       | MIT| Doc PR        | N/AFor consistency.Commits-------6ac2316 [Validator] Use LogicException for missing Property Access Component in comparison constraints
@LctrsLctrs deleted the validator/logic-exception branchJune 22, 2019 17:20
This was referencedJun 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@Lctrs@ogizanagi@fabpot@OskarStark@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp