diff --git a/src/Ease/Document.php b/src/Ease/Document.php index 3132833..398972f 100644 --- a/src/Ease/Document.php +++ b/src/Ease/Document.php @@ -129,7 +129,7 @@ public function redirect($url): void } if (headers_sent()) { - $this->addJavaScript('window.location = "'.$url.'"', 0, false); + $this->addJavaScript('window.location = "'.$url.'"', '0', false); } else { header('Location: '.$url); }