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.',