: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Wordfence\MmdbReader;
private static $SYSTEM = null;
private static function detect() {
$test = unpack('S', "\x00\x01");
public static function get() {
if (self::$SYSTEM === null)
self::$SYSTEM = self::detect();
public static function isBig() {
return self::get() === self::BIG;
public static function isLittle() {
return self::get() === self::LITTLE;
public static function convert($value, $source, $target = null) {