]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly typehint generated migrations 34487/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 9 Oct 2022 19:26:16 +0000 (21:26 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 9 Oct 2022 19:26:16 +0000 (21:26 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
core/Command/Db/Migrations/GenerateCommand.php

index 6c11c7705d2af5703efc51d1022c062a5f991636..aa93adaebb4d5ea50ff8e8c2f39b233080484d7e 100644 (file)
@@ -80,7 +80,7 @@ class {{classname}} extends SimpleMigrationStep {
 
        /**
         * @param IOutput $output
-        * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+        * @param Closure(): ISchemaWrapper $schemaClosure
         * @param array $options
         */
        public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
@@ -88,7 +88,7 @@ class {{classname}} extends SimpleMigrationStep {
 
        /**
         * @param IOutput $output
-        * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+        * @param Closure(): ISchemaWrapper $schemaClosure
         * @param array $options
         * @return null|ISchemaWrapper
         */
@@ -98,8 +98,8 @@ class {{classname}} extends SimpleMigrationStep {
 
        /**
         * @param IOutput $output
-        * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
-        * @param array $options
+        * @param Closure(): ISchemaWrapper $schemaClosure
+g       * @param array $options
         */
        public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
        }