You are here

public static function ParagonIE_Sodium_Compat::version_string in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::version_string()

This emulates libsodium's version_string() function, except ours is prefixed with 'polyfill-'.

@psalm-suppress MixedInferredReturnType @psalm-suppress UndefinedFunction

Return value

string

1 call to ParagonIE_Sodium_Compat::version_string()
php72compat.php in vendor/paragonie/sodium_compat/lib/php72compat.php

File

vendor/paragonie/sodium_compat/src/Compat.php, line 3498

Class

ParagonIE_Sodium_Compat

Code

public static function version_string() {
  if (self::useNewSodiumAPI()) {
    return (string) sodium_version_string();
  }
  if (self::use_fallback('version_string')) {
    return (string) call_user_func('\\Sodium\\version_string');
  }
  return (string) self::VERSION_STRING;
}