mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Make the migration template typed
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
87f8a09ac9
commit
600381f82a
1 changed files with 3 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ class {{classname}} extends SimpleMigrationStep {
|
|||
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
||||
* @param array $options
|
||||
*/
|
||||
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -69,7 +69,7 @@ class {{classname}} extends SimpleMigrationStep {
|
|||
* @param array $options
|
||||
* @return null|ISchemaWrapper
|
||||
*/
|
||||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
|
||||
{{schemabody}}
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ class {{classname}} extends SimpleMigrationStep {
|
|||
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
||||
* @param array $options
|
||||
*/
|
||||
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
|
||||
}
|
||||
}
|
||||
';
|
||||
|
|
|
|||
Loading…
Reference in a new issue