TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

Deprecated Cookie error #106

Closed Ced-Sharp closed 3 months ago

Ced-Sharp commented 3 months ago

In TypeRocket core, src/Http/Cookie.php, on line 101 and 143, NULL is being passed to the parameter "domain" of setcookie(), which is deprecated and throws an error (which shows the whoops error handler).

Setting it to an empty string seems to fix the issue.

kevindees commented 3 months ago

@Ced-Sharp, thanks for pointing this one out. This will be fixed in the next patch.