summaryrefslogtreecommitdiffstats
path: root/lib/public/Migration/IMigrationStep.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-15 10:58:51 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-15 10:58:51 +0200
commit65fb50f9fbbed08a7357a8f171569c383e28622f (patch)
tree09e2f16d7c377d90f45a66bdeefef9f1fa4e82b6 /lib/public/Migration/IMigrationStep.php
parent20e8b266b57c2e01c575dd7c73bde1674c3986d2 (diff)
downloadnextcloud-server-65fb50f9fbbed08a7357a8f171569c383e28622f.tar.gz
nextcloud-server-65fb50f9fbbed08a7357a8f171569c383e28622f.zip
Add psalm types for the migration schema closure
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Migration/IMigrationStep.php')
-rw-r--r--lib/public/Migration/IMigrationStep.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/Migration/IMigrationStep.php b/lib/public/Migration/IMigrationStep.php
index e5c4d50a299..3d0e23e5d38 100644
--- a/lib/public/Migration/IMigrationStep.php
+++ b/lib/public/Migration/IMigrationStep.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
*
@@ -49,6 +52,7 @@ interface IMigrationStep {
/**
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
*/
@@ -57,6 +61,7 @@ interface IMigrationStep {
/**
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @return null|ISchemaWrapper
* @since 13.0.0
@@ -66,6 +71,7 @@ interface IMigrationStep {
/**
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
*/