: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework;
public static function markApplicationEnd() {
Plugin::doAction('exit');
public static function exitApplication() {
self::markApplicationEnd();
public static function cleanOutputBuffers() {
$handlers = ob_list_handlers();
while (count($handlers) > 0 && $handlers[count($handlers) - 1] != 'ob_gzhandler' && $handlers[count($handlers) - 1] != 'zlib output compression') {
$handlers = ob_list_handlers();