Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 16, 2022
1 parent 7d0ea74 commit 7da6882
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Schema/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ public function getConnection(): Persistence\Sql\Connection
{
\Closure::bind(function () {
if ($this->_connection === null) {
$connection = Persistence\Sql::assertInstanceOf(
Persistence::connect($_ENV['DB_DSN'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'])
)->_connection;
$connection = Persistence::connect($_ENV['DB_DSN'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'])->_connection; // @phpstan-ignore-line
$this->_connection = $connection;

if ($connection->getDatabasePlatform() instanceof MySQLPlatform) {
Expand Down

0 comments on commit 7da6882

Please sign in to comment.