From b9dbce21f780709b709d6dfb9f8ed5f6e518222a Mon Sep 17 00:00:00 2001 From: rxu Date: Wed, 9 Jul 2025 11:59:53 +0700 Subject: [PATCH] [ticket/17507] Minor code fixes PHPBB-17507 --- phpBB/phpbb/db/tools/doctrine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/db/tools/doctrine.php b/phpBB/phpbb/db/tools/doctrine.php index 968b938ec0..87628d440e 100644 --- a/phpBB/phpbb/db/tools/doctrine.php +++ b/phpBB/phpbb/db/tools/doctrine.php @@ -96,7 +96,7 @@ class doctrine implements tools_interface */ protected function get_schema(): Schema { - return $this->get_schema_manager()->introspectSchema(); + return $this->get_schema_manager()->introspectSchema(); } /** @@ -645,7 +645,7 @@ class doctrine implements tools_interface ? [$table_data['PRIMARY_KEY']] : $table_data['PRIMARY_KEY']; - $table->setPrimaryKey($table_data['PRIMARY_KEY'], false); + $table->setPrimaryKey($table_data['PRIMARY_KEY']); } if (array_key_exists('KEYS', $table_data)) @@ -807,7 +807,7 @@ class doctrine implements tools_interface $this->alter_table( $schema, $table_name, - function (Table $table) use (&$schema, $table_name, $column_name, $safe_check): void + function (Table $table) use ($schema, $table_name, $column_name, $safe_check): void { if ($safe_check && !$table->hasColumn($column_name)) {