From 90ea2eccc3a73e6891714580760e211741604459 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 25 Jul 2023 21:32:38 +0200 Subject: [PATCH] Fix self deprecation --- src/Schema/Column.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/Column.php b/src/Schema/Column.php index d7e39d8cf88..03fd686f439 100644 --- a/src/Schema/Column.php +++ b/src/Schema/Column.php @@ -436,7 +436,7 @@ public function setCustomSchemaOptions(array $customSchemaOptions) */ public function getCustomSchemaOptions() { - Deprecation::trigger( + Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/5476', 'Column::getCustomSchemaOptions() is deprecated. Use getPlatformOptions() instead.',