From ea12db9bb4acc0510e134a622b13433d63f2f664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Bartus?= Date: Mon, 4 Jan 2021 21:56:01 +0100 Subject: [PATCH] [ticket/16668] Add return type hinting PHPBB3-16668 --- phpBB/phpbb/db/migration/schema_generator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/db/migration/schema_generator.php b/phpBB/phpbb/db/migration/schema_generator.php index d1820415c5..6db12d4b69 100644 --- a/phpBB/phpbb/db/migration/schema_generator.php +++ b/phpBB/phpbb/db/migration/schema_generator.php @@ -90,11 +90,11 @@ class schema_generator * * @return array An array describing the database schema. * - * @throws UnexpectedValueException If a migration tries to use an undefined schema change. + * @throws UnexpectedValueException If a migration tries to use an undefined schema change. * @throws UnexpectedValueException If a dependency can't be resolved or there are circular * dependencies between migrations. */ - public function get_schema() + public function get_schema() : array { if (!empty($this->tables)) { @@ -316,7 +316,7 @@ class schema_generator * * @return Closure|null The value transformation callback or null if it is not needed. */ - private static function get_value_transform(string $change_type, string $schema_type) + private static function get_value_transform(string $change_type, string $schema_type) : ?Closure { if ($change_type !== 'add') {