Skip to content

Commit

Permalink
Updating stubs to reflect breaking changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chewbakartik committed Apr 4, 2020
1 parent d055997 commit 4f30ddb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Output/stubs/blank.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
namespace <namespace>;

use Doctrine\Migrations\AbstractMigration;
use Doctrine\Schema\Schema as Schema;
use Doctrine\DBAL\Schema\Schema as Schema;

class <class> extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
public function up(Schema $schema): void
{
<up>
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
public function down(Schema $schema): void
{
<down>
}
Expand Down
6 changes: 3 additions & 3 deletions src/Output/stubs/create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace <namespace>;

use Doctrine\Migrations\AbstractMigration;
use Doctrine\Schema\Schema as Schema;
use Doctrine\DBAL\Schema\Schema as Schema;
use LaravelDoctrine\Migrations\Schema\Table;
use LaravelDoctrine\Migrations\Schema\Builder;

Expand All @@ -12,7 +12,7 @@ class <class> extends AbstractMigration
/**
* @param Schema $schema
*/
public function up(Schema $schema)
public function up(Schema $schema): void
{
(new Builder($schema))->create('<table>', function (Table $table) {
$table->increments('id');
Expand All @@ -23,7 +23,7 @@ class <class> extends AbstractMigration
/**
* @param Schema $schema
*/
public function down(Schema $schema)
public function down(Schema $schema): void
{
(new Builder($schema))->drop('<table>');
}
Expand Down
6 changes: 3 additions & 3 deletions src/Output/stubs/update.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace <namespace>;

use Doctrine\Migrations\AbstractMigration;
use Doctrine\Schema\Schema as Schema;
use Doctrine\DBAL\Schema\Schema as Schema;
use LaravelDoctrine\Migrations\Schema\Table;
use LaravelDoctrine\Migrations\Schema\Builder;

Expand All @@ -12,7 +12,7 @@ class <class> extends AbstractMigration
/**
* @param Schema $schema
*/
public function up(Schema $schema)
public function up(Schema $schema): void
{
(new Builder($schema))->table('<table>', function (Table $table) {
//
Expand All @@ -22,7 +22,7 @@ class <class> extends AbstractMigration
/**
* @param Schema $schema
*/
public function down(Schema $schema)
public function down(Schema $schema): void
{
(new Builder($schema))->table('<table>', function (Table $table) {
//
Expand Down

0 comments on commit 4f30ddb

Please sign in to comment.