: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Request;
use Nextend\Framework\PageFlow;
private static $requestUri;
public static $isAjax = false;
public function __construct() {
self::$REQUEST = new Storage($_REQUEST);
self::$GET = new Storage($_GET);
self::$POST = new Storage($_POST);
self::$SERVER = new Storage($_SERVER);
self::$COOKIE = new Storage($_COOKIE);
self::$FILES = new Storage($_FILES, true);
* @param array|string $url
* @param integer $statusCode
public static function redirect($url, $statusCode = 302, $terminate = true) {
header('Location: ' . $url, true, $statusCode);
PageFlow::exitApplication();