Skip to content

Commit

Permalink
Merge pull request #6132 from dkarlovi/dkarlovi-patch-1
Browse files Browse the repository at this point in the history
fix: don't trigger deprecation if called internally
  • Loading branch information
greg0ire committed Aug 17, 2023
2 parents 1d6b351 + 3780d3a commit 63646ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Schema/AbstractSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ protected function doListTableColumns($table, $database = null): array
if ($database === null) {
$database = $this->getDatabase(__METHOD__);
} else {
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/issues/5284',
'Passing $database to AbstractSchemaManager::listTableColumns() is deprecated.',
'Passing $database to AbstractSchemaManager::doListTableColumns() is deprecated.',
);
}

Expand Down

0 comments on commit 63646ff

Please sign in to comment.