Skip to content

Commit 6dea805

Browse files
vertexvaareinpraegsam
authored andcommitted
don't use yoda conditions
1 parent 0a2fad2 commit 6dea805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Domain/Validator/CaptchaValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function isValid($mail)
5959
* Resolves: https://github.com/einpraegsam/powermail/issues/376
6060
* Resolves: https://projekte.in2code.de/issues/44174
6161
*/
62-
if (null === $answer->getUid()) {
62+
if ($answer->getUid() === null) {
6363
if (!$this->validCodePreflight($answer->getValue(), $answer->getField())) {
6464
$this->setErrorAndMessage($answer->getField(), 'captcha');
6565
}

0 commit comments

Comments
 (0)