From b68be3608fddf088768729259f167734164ac954 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 25 Jul 2022 19:48:15 +0200 Subject: [PATCH] Enforce property types in tests --- phpcs.xml.dist | 5 ++++- tests/ConnectionTest.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index d956ff6fdd5..23e215e2b46 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -20,7 +20,6 @@ - @@ -49,6 +48,10 @@ */src/* + + */src/* + + */src/* diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index 8422cbb1ab6..ba5fc74c07d 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -39,7 +39,7 @@ class ConnectionTest extends TestCase private Connection $connection; /** @var array{wrapperClass?: class-string} */ - protected $params = [ + protected array $params = [ 'driver' => 'pdo_mysql', 'host' => 'localhost', 'user' => 'root',