: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
public static function isInteger($value, $min = null, $max = null) {
$options['min_range'] = $min;
$options['max_range'] = $max;
return filter_var($value, FILTER_VALIDATE_INT, array('options' => $options)) !== false;
public static function isUnixTimestamp($value) {
return self::isInteger($value, 0);