Skip to content

Commit

Permalink
Merge pull request #5166 from morozov/issues/4511
Browse files Browse the repository at this point in the history
Enforce consistent constructor in dynamically instantiated classes
  • Loading branch information
morozov authored Jan 6, 2022
2 parents f0a0491 + 7533fa0 commit 4832932
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/DBAL/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* lazy connecting and more.
*
* @psalm-import-type Params from DriverManager
* @psalm-consistent-constructor
*/
class Connection implements DriverConnection
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Doctrine/DBAL/Platforms/Keywords/KeywordList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Abstract interface for a SQL reserved keyword dictionary.
*
* @psalm-consistent-constructor
*/
abstract class KeywordList
{
Expand Down
9 changes: 0 additions & 9 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,6 @@
<file name="lib/Doctrine/DBAL/Driver/PDOStatement.php"/>
</errorLevel>
</UnimplementedInterfaceMethod>
<UnsafeInstantiation>
<errorLevel type="suppress">
<!-- See https://github.com/doctrine/dbal/issues/4510 -->
<file name="lib/Doctrine/DBAL/Platforms/AbstractPlatform.php"/>
<file name="lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php"/>
<!-- See https://github.com/doctrine/dbal/issues/4511 -->
<file name="lib/Doctrine/DBAL/DriverManager.php"/>
</errorLevel>
</UnsafeInstantiation>
<InvalidArgument>
<errorLevel type="suppress">
<!-- See https://github.com/doctrine/dbal/pull/3803 -->
Expand Down

0 comments on commit 4832932

Please sign in to comment.