Skip to content

Commit cff553e

Browse files
committed
Redirect must use self::die for phpunit
1 parent b85fc07 commit cff553e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnitySite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function die($x = null)
2727
public static function redirect($destination)
2828
{
2929
header("Location: $destination");
30-
die("Redirect failed, click <a href='$destination'>here</a> to continue.");
30+
self::die("Redirect failed, click <a href='$destination'>here</a> to continue.");
3131
}
3232

3333
private static function headerResponseCode(int $code, string $reason)

0 commit comments

Comments
 (0)