Skip to content

Commit c6f6493

Browse files
author
Stephan Six
committed
[DoctrineBridge] Adhere to coding standards
1 parent 07bfc5f commit c6f6493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public function __construct(
9595
$this->errorPath = $errorPath ?? $this->errorPath;
9696
$this->ignoreNull = $ignoreNull ?? $this->ignoreNull;
9797
$this->identifierFieldNames = $identifierFieldNames ?? $this->identifierFieldNames;
98-
$this->comparator = $comparator === null ? $this->comparator : $comparator(...);
98+
$this->comparator = null === $comparator ? $this->comparator : $comparator(...);
9999

100-
if ($this->identifierFieldNames !== [] && $this->comparator !== null) {
100+
if ([] !== $this->identifierFieldNames && null !== $this->comparator) {
101101
throw new ConstraintDefinitionException('Only "identifierFieldNames" or "comparator" can be used at the same time.');
102102
}
103103
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy