From 0c93aaaeaa193470d049c21e323bac5afd3e6df8 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Tue, 2 Dec 2025 14:47:45 -0600 Subject: [PATCH 1/2] Remove readonly from adapter Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- src/Adapter/Adapter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Adapter/Adapter.php b/src/Adapter/Adapter.php index f2011303..9d88f2fa 100644 --- a/src/Adapter/Adapter.php +++ b/src/Adapter/Adapter.php @@ -20,9 +20,9 @@ class Adapter implements AdapterInterface, Profiler\ProfilerAwareInterface, Sche * @throws Exception\InvalidArgumentException */ public function __construct( - protected readonly Driver\DriverInterface $driver, - protected readonly Platform\PlatformInterface $platform, - protected readonly ResultSet\ResultSetInterface $queryResultSetPrototype, + protected Driver\DriverInterface $driver, + protected Platform\PlatformInterface $platform, + protected ResultSet\ResultSetInterface $queryResultSetPrototype = new ResultSet\ResultSet(), protected ?Profiler\ProfilerInterface $profiler = null ) { if ($profiler) { From 75772c754478fc33157694002244af2d41ed58a3 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Wed, 3 Dec 2025 00:51:49 -0600 Subject: [PATCH 2/2] Mark abstract factory as internal Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- src/Container/AdapterAbstractServiceFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Container/AdapterAbstractServiceFactory.php b/src/Container/AdapterAbstractServiceFactory.php index 52e6ceb5..37cbe09a 100644 --- a/src/Container/AdapterAbstractServiceFactory.php +++ b/src/Container/AdapterAbstractServiceFactory.php @@ -16,6 +16,8 @@ * Database adapter abstract service factory. * * Allows configuring several database instances (such as writer and reader). + * + * @internal */ class AdapterAbstractServiceFactory implements AbstractFactoryInterface {