Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-10 12:56:59 +0300
committerGitHub <noreply@github.com>2022-10-10 12:56:59 +0300
commita02c8fe01dd954e9ec9771bf10470d1545b54bf0 (patch)
tree588efc2d624a1715a32d1a742ad4060c586b8b66
parentcf5bf3036dee4527b93c5bb8e43c0ed3a216e15a (diff)
parentaaf9b9c4fd956a1c46c2dfb9a2812e587afd7e25 (diff)
Merge pull request #34487 from nextcloud/psalm_fix_migration_generation
fix typehints for generated migrations
-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 {
}