Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant phpstan param from DriverManager::getConnection() #4403

Merged
merged 1 commit into from Nov 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Doctrine/DBAL/DriverManager.php
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
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/DBAL/ConnectionTest.php
Expand Up @@ -36,7 +36,7 @@ class ConnectionTest extends DbalTestCase
/** @var Connection */
private $connection;

/** @var string[] */
/** @var array{wrapperClass?: class-string<Connection>} */
protected $params = [
'driver' => 'pdo_mysql',
'host' => 'localhost',
Expand Down