Skip to content

Commit a084151

Browse files
authored
fix: php8.2 deprecation warnings. (#317)
1 parent 1655e3b commit a084151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AMP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ protected function substituteStatisticsPlaceholders($html)
353353
. " 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
354354
. "=END-AMP-STATS-FOOTER=";
355355

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

359359
return $end_replaced;
360360
}

0 commit comments

Comments
 (0)