Skip to content

Commit

Permalink
fixup! fix imigration type hints
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala committed Oct 28, 2022
1 parent 2e34380 commit bc1c06b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions core/Command/Db/Migrations/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,14 @@ class GenerateCommand extends Command implements CompletionAwareInterface {
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
/**
* Auto-generated migration step: Please modify to your needs!
*/
class {{classname}} extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
* @param array $options
*/
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
}
/**
Expand All @@ -92,16 +89,16 @@ public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $
* @param array $options
* @return null|ISchemaWrapper
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
{{schemabody}}
}
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
g * @param array $options
* @param array $options
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
}
}
';
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Migration/IMigrationStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op

/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosures
* @param Closure(): ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Migration/SimpleMigrationStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array
* @return null|ISchemaWrapper
* @since 13.0.0
*/
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper {
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
return null;
}

Expand Down

0 comments on commit bc1c06b

Please sign in to comment.