Skip to content

Commit

Permalink
fix: php8.2 deprecation warnings. (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvir249 authored Dec 23, 2024
1 parent 1655e3b commit a084151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AMP.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ protected function substituteStatisticsPlaceholders($html)
. " If your network is slow, your library processing time will increase and network download time may dominate total time taken for library processing." . PHP_EOL
. "=END-AMP-STATS-FOOTER=";

$start_replaced = str_replace("#AMP-START-PLACEHOLDER-${stats_data['start_time']}#", $comment_start, $html);
$end_replaced = str_replace("#AMP-END-PLACEHOLDER-${stats_data['start_time']}#", $comment_end, $start_replaced);
$start_replaced = str_replace("#AMP-START-PLACEHOLDER-{$stats_data['start_time']}#", $comment_start, $html);
$end_replaced = str_replace("#AMP-END-PLACEHOLDER-{$stats_data['start_time']}#", $comment_end, $start_replaced);

return $end_replaced;
}
Expand Down

0 comments on commit a084151

Please sign in to comment.