From faeb4406b81f3697ac13acdc741ffcb5e9eec8dd Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 31 Jul 2026 12:09:44 +0100 Subject: [PATCH 1/5] Switch to json serialization --- Service/Cache/Psr16CacheAdapter.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Service/Cache/Psr16CacheAdapter.php b/Service/Cache/Psr16CacheAdapter.php index c46138e..584476a 100644 --- a/Service/Cache/Psr16CacheAdapter.php +++ b/Service/Cache/Psr16CacheAdapter.php @@ -26,7 +26,12 @@ public function get($key, $default = null): mixed return $default; } - return unserialize($item); + $decoded = json_decode($item, true); + if (json_last_error() === JSON_ERROR_NONE) { + return $decoded; + } + + return $default; } /** @@ -34,9 +39,8 @@ public function get($key, $default = null): mixed */ public function set($key, $value, $ttl = null): bool { - $value = serialize($value); return $this->cacheFrontend->save( - $value, + json_encode($value), $key, [CacheType::CACHE_TAG], $ttl From 996a64e5554c17ab768842392ab3e537bcffc468 Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 31 Jul 2026 12:16:06 +0100 Subject: [PATCH 2/5] PX-4364: Update version --- CHANGELOG.md | 6 ++++++ etc/config.xml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bf3bd5..f6f6559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.4.3] - 2026-07-03 + +### Changed + +- Switch to json serialization for cache adapter + ## [v2.4.2] - 2025-03-20 ### Fixed diff --git a/etc/config.xml b/etc/config.xml index 9be13cb..648ece2 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -10,7 +10,7 @@ - 2.4.2 + 2.4.3 TrueLayerFacade TrueLayer Make a direct payment securely from your bank app - no card needed From e685776489c5babf7c12d048485a84b232dda3ee Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 31 Jul 2026 12:18:53 +0100 Subject: [PATCH 3/5] PX-4364: Update tested versions --- .github/workflows/setup-di-compile.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/setup-di-compile.yml b/.github/workflows/setup-di-compile.yml index d30c9d4..7affa20 100644 --- a/.github/workflows/setup-di-compile.yml +++ b/.github/workflows/setup-di-compile.yml @@ -1,5 +1,5 @@ name: Run setup:upgrade and setup:di:compile -on: [ pull_request ] +on: [pull_request] jobs: build: @@ -7,10 +7,10 @@ jobs: fail-fast: false matrix: include: - - PHP_VERSION: php81-fpm - MAGENTO_VERSION: 2.4.5-p11 - PHP_VERSION: php82-fpm - MAGENTO_VERSION: 2.4.6 + MAGENTO_VERSION: 2.4.8 + - PHP_VERSION: php82-fpm + MAGENTO_VERSION: 2.4.9 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 89902f9f2da0f1c6ae14db2f721ea38ec95664bf Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 31 Jul 2026 12:26:41 +0100 Subject: [PATCH 4/5] PX-4364: Update tested versions --- .github/workflows/setup-di-compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-di-compile.yml b/.github/workflows/setup-di-compile.yml index 7affa20..27c9d45 100644 --- a/.github/workflows/setup-di-compile.yml +++ b/.github/workflows/setup-di-compile.yml @@ -7,9 +7,9 @@ jobs: fail-fast: false matrix: include: - - PHP_VERSION: php82-fpm + - PHP_VERSION: php84-fpm MAGENTO_VERSION: 2.4.8 - - PHP_VERSION: php82-fpm + - PHP_VERSION: php85-fpm MAGENTO_VERSION: 2.4.9 runs-on: ubuntu-latest steps: From ca59fde161485e5b4285361441c38c5c5f1d0aec Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 31 Jul 2026 13:24:38 +0100 Subject: [PATCH 5/5] PX-4364: Update tested versions --- .github/workflows/setup-di-compile.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/setup-di-compile.yml b/.github/workflows/setup-di-compile.yml index 27c9d45..41e20f8 100644 --- a/.github/workflows/setup-di-compile.yml +++ b/.github/workflows/setup-di-compile.yml @@ -7,10 +7,8 @@ jobs: fail-fast: false matrix: include: - - PHP_VERSION: php84-fpm - MAGENTO_VERSION: 2.4.8 - - PHP_VERSION: php85-fpm - MAGENTO_VERSION: 2.4.9 + - PHP_VERSION: php82-fpm + MAGENTO_VERSION: 2.4.6 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2