From 5925f9f3abff4e7c7b19ed3a9e8c8eee52bc2d58 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 24 Jul 2023 09:16:16 +0200 Subject: [PATCH] Avoid self deprecation --- src/Schema/AbstractSchemaManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/AbstractSchemaManager.php b/src/Schema/AbstractSchemaManager.php index 7da2b1178db..a7d92d2608d 100644 --- a/src/Schema/AbstractSchemaManager.php +++ b/src/Schema/AbstractSchemaManager.php @@ -215,7 +215,7 @@ public function listTableColumns($table, $database = null) 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.',