From 06f35ec4f8ba04131e22bfb691f99e092e001f86 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 18 Feb 2026 08:36:08 +0100 Subject: [PATCH] fix(migrations): Restore type definitions for API class used in apps Signed-off-by: Joas Schilling --- lib/public/Migration/SimpleMigrationStep.php | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lib/public/Migration/SimpleMigrationStep.php b/lib/public/Migration/SimpleMigrationStep.php index 4f6f3770919ba..bea3d1be8fdf7 100644 --- a/lib/public/Migration/SimpleMigrationStep.php +++ b/lib/public/Migration/SimpleMigrationStep.php @@ -7,6 +7,7 @@ */ namespace OCP\Migration; +use OCP\DB\ISchemaWrapper; use Override; /** @@ -15,25 +16,51 @@ * @since 13.0.0 */ abstract class SimpleMigrationStep implements IMigrationStep { + /** + * Human-readable name of the migration step + * + * @since 14.0.0 + */ #[Override] public function name(): string { return ''; } + /** + * Human-readable description of the migration step + * + * @since 14.0.0 + */ #[Override] public function description(): string { return ''; } + /** + * @param Closure():ISchemaWrapper $schemaClosure + * @param array{tablePrefix?: string} $options + * @since 13.0.0 + */ #[Override] public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { } + /** + * @param Closure():ISchemaWrapper $schemaClosure + * @param array{tablePrefix?: string} $options + * @return null|ISchemaWrapper + * @since 13.0.0 + */ #[Override] public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { return null; } + /** + * @param Closure():ISchemaWrapper $schemaClosure + * @param array{tablePrefix?: string} $options + * @since 13.0.0 + */ #[Override] public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { }