Skip to content

Commit

Permalink
Fix erros reported by psalm and phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed May 10, 2020
1 parent 85a1a85 commit 78643e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/BakeMigrationDiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ protected function getCurrentSchema()
}

$connection = ConnectionManager::get($this->connection);
$connection->cacheMetadata(false);
if (method_exists($connection, 'cacheMetadata')) {
$connection->cacheMetadata(false);
}
$collection = $connection->getSchemaCollection();
foreach ($this->tables as $table) {
if (preg_match("/^.*phinxlog$/", $table) === 1) {
Expand Down

0 comments on commit 78643e4

Please sign in to comment.