src/Validator/Specific/Password.php
private function validateLetter(): bool
    {
        if ($this->options['require-letter'] === true) {
            if (!\preg_match('/[a-z]/iu', (string)$this->value)) {
                $this->setError(self::VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_LETTER);
                return false;
            }
        }
        return true;
    }
private function validateLetter(): bool
    {
        if ($this->options['require-letter'] === true) {
            if (!\preg_match('/[a-z]/iu', (string)$this->value)) {
                $this->setError(self::VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_LETTER);
                return false;
            }
        }
        return true;
    }
private function validateLetter ( ) : bool { if ( $ this -> options [ 'require-letter' ] === true ) { if ( ! \ preg_match ( '/[a-z]/iu' , ( string ) $ this -> value ) ) { $ this -> setError ( self :: VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_LETTER ) ; return false ; } } return true ; }
Validates that password contains a letter

@return bool
Validates that password contains a letter