Skip to content

Commit 271d520

Browse files
authored
PHP 8.1: Switch a function treated as static to a static method.
1 parent 998cc9b commit 271d520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static function append_old_tags( $content ) {
8787
* @param int $post_id The post ID that the content belongs to
8888
* @return string The raw content, with tags appended
8989
*/
90-
function append_old_tags_raw( $content, $post_id ) {
90+
static function append_old_tags_raw( $content, $post_id ) {
9191
$content_tags = o2_Tags::find_tags( $content, true );
9292
$content_tags = array_map( 'strtolower', $content_tags );
9393
$content_tags = array_unique( $content_tags );
@@ -117,7 +117,7 @@ function append_old_tags_raw( $content, $post_id ) {
117117
* @return string The fragment with any old tags appended to contentRaw
118118
*/
119119
function append_old_tags_to_fragment( $fragment ) {
120-
$fragment['contentRaw'] = $this->append_old_tags_raw( $fragment['contentRaw'], $fragment['id'] );
120+
$fragment['contentRaw'] = o2_Tags::append_old_tags_raw( $fragment['contentRaw'], $fragment['id'] );
121121
return $fragment;
122122
}
123123

0 commit comments

Comments
 (0)