]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make the migration template typed 23479/head
authorJoas Schilling <coding@schilljs.com>
Thu, 15 Oct 2020 14:08:50 +0000 (16:08 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 15 Oct 2020 14:08:50 +0000 (16:08 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Command/Db/Migrations/GenerateCommand.php

index 754d1f48401061e6c7d2c1df98da3f7419c377a6..fcafa9431c3e38b2b8ca3ba9606967c3e001aba5 100644 (file)
@@ -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 {
        }
 }
 ';