From 62fb397101937ea2ea5217b182f1735002e27eea Mon Sep 17 00:00:00 2001 From: Rajesh Kumar Date: Thu, 1 Feb 2024 22:25:44 +0530 Subject: [PATCH] Fixed Deprecated: Creation of dynamic property --- test/integration/Adapter/Driver/Pdo/Mysql/AdapterTest.php | 3 +++ test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php | 3 +++ .../Adapter/Driver/Pdo/Mysql/TableGatewayTest.php | 3 +++ .../Adapter/Driver/Pdo/Postgresql/AdapterTest.php | 3 +++ test/unit/Adapter/Driver/IbmDb2/StatementTest.php | 2 ++ test/unit/RowGateway/RowGatewayTest.php | 2 ++ test/unit/Sql/Platform/Mysql/SelectDecoratorTest.php | 6 ++++++ test/unit/TableGateway/AbstractTableGatewayTest.php | 4 ++++ 8 files changed, 26 insertions(+) diff --git a/test/integration/Adapter/Driver/Pdo/Mysql/AdapterTest.php b/test/integration/Adapter/Driver/Pdo/Mysql/AdapterTest.php index 133d7c64..91056569 100644 --- a/test/integration/Adapter/Driver/Pdo/Mysql/AdapterTest.php +++ b/test/integration/Adapter/Driver/Pdo/Mysql/AdapterTest.php @@ -2,11 +2,14 @@ namespace LaminasIntegrationTest\Db\Adapter\Driver\Pdo\Mysql; +use Laminas\Db\Adapter\Adapter; use LaminasIntegrationTest\Db\Adapter\Driver\Pdo\AbstractAdapterTest; class AdapterTest extends AbstractAdapterTest { use AdapterTrait; + /** @var Adapter */ + protected $adapter; public const DB_SERVER_PORT = 3306; } diff --git a/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php b/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php index 43087a4c..6af423ec 100644 --- a/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php +++ b/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php @@ -2,6 +2,7 @@ namespace LaminasIntegrationTest\Db\Adapter\Driver\Pdo\Mysql; +use Laminas\Db\Adapter\Adapter; use Laminas\Db\Adapter\Driver\Pdo\Result as PdoResult; use Laminas\Db\Adapter\Exception\RuntimeException; use Laminas\Db\ResultSet\ResultSet; @@ -12,6 +13,8 @@ class QueryTest extends TestCase { use AdapterTrait; + /** @var Adapter */ + protected $adapter; /** * @psalm-return array