From 25120b07fbecfbe4a1103b71136d51d4861a9639 Mon Sep 17 00:00:00 2001 From: "Gabriel R. Barbosa" <12158575+gabrielrbarbosa@users.noreply.github.com> Date: Fri, 16 Dec 2022 15:19:21 -0300 Subject: [PATCH 1/3] AllowDynamicProperties in Entity class PHP 8.2 deprecated --- src/MercadoPago/Entity.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MercadoPago/Entity.php b/src/MercadoPago/Entity.php index fd85923d..edd0616e 100755 --- a/src/MercadoPago/Entity.php +++ b/src/MercadoPago/Entity.php @@ -7,6 +7,7 @@ * * @package MercadoPago */ +#[AllowDynamicProperties] abstract class Entity { /** From df6526417f1c540895c1dac66e58191f0fd495ba Mon Sep 17 00:00:00 2001 From: "Gabriel R. Barbosa" <12158575+gabrielrbarbosa@users.noreply.github.com> Date: Fri, 16 Dec 2022 15:21:21 -0300 Subject: [PATCH 2/3] PHP 8.2: ${var} string interpolation deprecated --- src/MercadoPago/Entities/OAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MercadoPago/Entities/OAuth.php b/src/MercadoPago/Entities/OAuth.php index ace021d1..f32fe5f2 100644 --- a/src/MercadoPago/Entities/OAuth.php +++ b/src/MercadoPago/Entities/OAuth.php @@ -106,7 +106,7 @@ class OAuth extends Entity */ public function getAuthorizationURL($app_id, $redirect_uri){ $county_id = strtolower(SDK::getCountryId()); - return "https://auth.mercadopago.com.${county_id}/authorization?client_id=${app_id}&response_type=code&platform_id=mp&redirect_uri=${redirect_uri}"; + return "https://auth.mercadopago.com.{$county_id}/authorization?client_id={$app_id}&response_type=code&platform_id=mp&redirect_uri={$redirect_uri}"; } From 681c390864208011d7c66e6739966fd97107b6d7 Mon Sep 17 00:00:00 2001 From: "Gabriel R. Barbosa" <12158575+gabrielrbarbosa@users.noreply.github.com> Date: Fri, 16 Dec 2022 16:33:09 -0300 Subject: [PATCH 3/3] AllowDynamicProperties in Entity class --- src/MercadoPago/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MercadoPago/Entity.php b/src/MercadoPago/Entity.php index edd0616e..465c4638 100755 --- a/src/MercadoPago/Entity.php +++ b/src/MercadoPago/Entity.php @@ -7,7 +7,7 @@ * * @package MercadoPago */ -#[AllowDynamicProperties] +#[\AllowDynamicProperties] abstract class Entity { /**