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

Commit6ac2316

Browse files
committed
[Validator] Use LogicException for missing Property Access Component in comparison constraints
1 parentc9ab846 commit6ac2316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/Symfony/Component/Validator/Constraints/AbstractComparison.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
useSymfony\Component\PropertyAccess\PropertyAccess;
1515
useSymfony\Component\Validator\Constraint;
1616
useSymfony\Component\Validator\Exception\ConstraintDefinitionException;
17+
useSymfony\Component\Validator\Exception\LogicException;
1718

1819
/**
1920
* Used for the comparison of values.
@@ -46,7 +47,7 @@ public function __construct($options = null)
4647
}
4748

4849
if (isset($options['propertyPath']) && !class_exists(PropertyAccess::class)) {
49-
thrownewConstraintDefinitionException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.',\get_class($this)));
50+
thrownewLogicException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.',\get_class($this)));
5051
}
5152
}
5253

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp