From 7533fa0add54cf7565c5121c05c7ee799809c4f0 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Thu, 6 Jan 2022 09:38:26 -0800 Subject: [PATCH] Enforce consistent constructor in dynamically instantiated classes --- lib/Doctrine/DBAL/Connection.php | 1 + lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php | 2 ++ psalm.xml.dist | 9 --------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index 68b82639060..d3a3f8aa1c6 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -41,6 +41,7 @@ * lazy connecting and more. * * @psalm-import-type Params from DriverManager + * @psalm-consistent-constructor */ class Connection implements DriverConnection { diff --git a/lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php b/lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php index 852a58aba2b..34b703f3e54 100644 --- a/lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php +++ b/lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php @@ -8,6 +8,8 @@ /** * Abstract interface for a SQL reserved keyword dictionary. + * + * @psalm-consistent-constructor */ abstract class KeywordList { diff --git a/psalm.xml.dist b/psalm.xml.dist index 35aafa3532a..fe746621351 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -389,15 +389,6 @@ - - - - - - - - -