From 9266d1e2ce8355bcccfd937bd5db4c158c4dd86a Mon Sep 17 00:00:00 2001 From: splitt3r Date: Sat, 2 Dec 2017 21:49:24 +0100 Subject: [PATCH 1/2] Updated type hint + use statement See https://github.com/nextcloud/server/blob/master/lib/private/DB/MigrationService.php#L397 --- core/Command/Db/Migrations/GenerateCommand.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index 8fbc1781d94c4..6e5c65a5dd6a8 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -39,7 +39,7 @@ class GenerateCommand extends Command { ' Date: Sun, 3 Dec 2017 11:50:01 +0100 Subject: [PATCH 2/2] Fixed remaining type hint --- core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php index d8dc2be11a4ea..4fab8ad5d0559 100644 --- a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php +++ b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php @@ -91,7 +91,7 @@ public function execute(InputInterface $input, OutputInterface $output) { */ protected function schemaToMigration(Schema $schema) { $content = <<<'EOT' - /** @var Schema $schema */ + /** @var SchemaWrapper $schema */ $schema = $schemaClosure(); EOT;