Skip to content

Commit

Permalink
'${} string interpolation' is deprecated since PHP 8.2PHP(PHP6403)
Browse files Browse the repository at this point in the history
'${} string interpolation' is deprecated since PHP 8.2PHP(PHP6403)
Using ${} in strings is deprecated.intelephense(P1007)
@var string|int $i
  • Loading branch information
miniwater committed Jan 9, 2024
1 parent 376dc15 commit 900e22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fun/opt.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function pk_post_menu_id($content)
$start = stripos($content, $ms[0][$i]);
$end = strlen($ms[0][$i]);
$level = substr($ms[0][$i], 1, 2);
$content = substr_replace($content, "<$level id='pk-menu-${i}'>{$title}</{$level}>", $start, $end);
$content = substr_replace($content, "<$level id='pk-menu-{$i}'>{$title}</{$level}>", $start, $end);
}
}
return $content;
Expand Down

0 comments on commit 900e22e

Please sign in to comment.