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 7dea6f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Schema/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ 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;
$test = TestCase::getTestFromBacktrace();var_dump($test::$c2++);

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

0 comments on commit 7dea6f7

Please sign in to comment.