diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-16 00:33:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 00:33:50 +0200 |
commit | 95020a47871d1d0fa3ff85bcb0ec76d9d0ab33d6 (patch) | |
tree | d22c6d6ae4a4187b47f7b36a021483260702bbed | |
parent | 000c4b49f9ce15ec3b6a7aa44ad1516f350f396e (diff) | |
parent | 600381f82a49018fee5938846cb62a09d607a6be (diff) | |
download | nextcloud-server-95020a47871d1d0fa3ff85bcb0ec76d9d0ab33d6.tar.gz nextcloud-server-95020a47871d1d0fa3ff85bcb0ec76d9d0ab33d6.zip |
Merge pull request #23479 from nextcloud/techdebt/noid/typed-migration-template
Make the migration template typed
-rw-r--r-- | core/Command/Db/Migrations/GenerateCommand.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index 754d1f48401..fcafa9431c3 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -60,7 +60,7 @@ class {{classname}} extends SimpleMigrationStep { * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { + public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } /** @@ -69,7 +69,7 @@ class {{classname}} extends SimpleMigrationStep { * @param array $options * @return null|ISchemaWrapper */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { {{schemabody}} } @@ -78,7 +78,7 @@ class {{classname}} extends SimpleMigrationStep { * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } } '; |