From d4992141bd404dbbb54bb23d4f8aeb723378edb1 Mon Sep 17 00:00:00 2001 From: sonvir249 Date: Mon, 29 Jan 2024 20:56:35 +0530 Subject: [PATCH] issue-316: Fixed php8.2 deprecation warnings. --- src/AMP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AMP.php b/src/AMP.php index 1a13f175..3542653e 100644 --- a/src/AMP.php +++ b/src/AMP.php @@ -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; }