Skip to content

Commit

Permalink
Merge pull request #82 from feam-codes/bugfix/php8-compatibility
Browse files Browse the repository at this point in the history
[BUGFIX] PHP 8 compatibility: add static keyword to decode and encode function
  • Loading branch information
hschottm authored May 30, 2022
2 parents 6ee7b73 + 1c767d3 commit 8fc9d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/TagHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public static function getPageObj($jumpTo = null)
}
}

public function encode($tag)
public static function encode($tag)
{
return str_replace('/', 'x2F', $tag);
}

public function decode($tag)
public static function decode($tag)
{
return str_replace('x2F', '/', $tag);
}
Expand Down

0 comments on commit 8fc9d65

Please sign in to comment.