summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2022-10-09 21:26:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2022-10-09 21:26:16 +0200
commitaaf9b9c4fd956a1c46c2dfb9a2812e587afd7e25 (patch)
treecb7d45e636f69d872368883de193fe71e9629619 /core/Command
parentade1c1e99b53f5c338e3ac2b6107a2da89fcc6b8 (diff)
downloadnextcloud-server-aaf9b9c4fd956a1c46c2dfb9a2812e587afd7e25.tar.gz
nextcloud-server-aaf9b9c4fd956a1c46c2dfb9a2812e587afd7e25.zip
properly typehint generated migrations
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index 6c11c7705d2..aa93adaebb4 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -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 {
}