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 e516a1e commit ddaef02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,8 @@ private function normalizeDomain($domain)
*/
private function normalizePath($path)
{
if(null !== $path)
{
$path = rtrim($path, '/');
if (null !== $path) {
$path = rtrim($path, '/');
}

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

0 comments on commit ddaef02

Please sign in to comment.