Skip to content

Commit

Permalink
feat: fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Mar 16, 2024
1 parent 33555d9 commit d391078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@ private function normalizeDomain($domain)
*/
private function normalizePath($path)
{
$path = rtrim($path, '/');
if(null !== $path)
{
$path = rtrim($path, '/');
}

if (empty($path) or '/' !== substr($path, 0, 1)) {
$path = '/';
Expand Down

0 comments on commit d391078

Please sign in to comment.