Skip to content

Commit

Permalink
Remove redundant phpstan param from DriverManager::getConnection()
Browse files Browse the repository at this point in the history
This effectively prevented phpstan from inferring type of `T` template.

> Unable to resolve the template type T in call to method static method Doctrine\DBAL\DriverManager::getConnection()
  • Loading branch information
simPod authored Nov 2, 2020
1 parent cad295a commit d23f000
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Doctrine/DBAL/DriverManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ private function __construct()
*
* @throws Exception
*
* @phpstan-param mixed[] $params
* @psalm-return ($params is array{wrapperClass:mixed} ? T : Connection)
* @template T of Connection
*/
Expand Down

0 comments on commit d23f000

Please sign in to comment.