src/Validator/Specific/Password.php
private function validateUppercaseLetter(): bool
    {
        if ($this->options['require-uppercase-letter'] === true) {
            if (!\preg_match('/[A-Z]/u', (string)$this->value)) {
                $this->setError(self::VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_UPPERCASE_LETTER);
                return false;
            }
        }
        return true;
    }
private function validateUppercaseLetter(): bool
    {
        if ($this->options['require-uppercase-letter'] === true) {
            if (!\preg_match('/[A-Z]/u', (string)$this->value)) {
                $this->setError(self::VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_UPPERCASE_LETTER);
                return false;
            }
        }
        return true;
    }
private function validateUppercaseLetter ( ) : bool { if ( $ this -> options [ 'require-uppercase-letter' ] === true ) { if ( ! \ preg_match ( '/[A-Z]/u' , ( string ) $ this -> value ) ) { $ this -> setError ( self :: VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_UPPERCASE_LETTER ) ; return false ; } } return true ; }
Validates that password contains an uppercase letter

@return bool
Validates that password contains an uppercase letter