File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Bridge/Doctrine/Validator/Constraints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ public function __construct(
95
95
$ this ->errorPath = $ errorPath ?? $ this ->errorPath ;
96
96
$ this ->ignoreNull = $ ignoreNull ?? $ this ->ignoreNull ;
97
97
$ this ->identifierFieldNames = $ identifierFieldNames ?? $ this ->identifierFieldNames ;
98
- $ this ->comparator = $ comparator === null ? $ this ->comparator : $ comparator (...);
98
+ $ this ->comparator = null === $ comparator ? $ this ->comparator : $ comparator (...);
99
99
100
- if ($ this ->identifierFieldNames !== [] && $ this ->comparator !== null ) {
100
+ if ([] !== $ this ->identifierFieldNames && null !== $ this ->comparator ) {
101
101
throw new ConstraintDefinitionException ('Only "identifierFieldNames" or "comparator" can be used at the same time. ' );
102
102
}
103
103
}
You can’t perform that action at this time.
0 commit comments