From a084151a17ca0b1f81d4dedc79ed42c46cc467f0 Mon Sep 17 00:00:00 2001
From: Sonvir <choudharysonvir@gmail.com>
Date: Mon, 23 Dec 2024 17:06:51 +0530
Subject: [PATCH] fix: php8.2 deprecation warnings. (#317)

---
 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;
     }