Skip to content

Commit

Permalink
Merge pull request #149 from jadu/upgrade-notes
Browse files Browse the repository at this point in the history
Added upgrade notes
  • Loading branch information
dgudgeon authored Jan 16, 2023
2 parents fa2bd21 + 86be1a7 commit e9c2dcf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Upgrade from 3.x to 4.0

## Migration update

4.0 introduces a newer version of Doctrine which includes a change to the namespacing of the AbstractMigration class.

If you have any migrations in your project that reference this class, the namespace reference will need to be updated.

Change from:


```
Doctrine\DBAL\Migrations\AbstractMigration
```

to:

```
Doctrine\Migrations\AbstractMigration
```

The method signatures for many methods within this class have also changed. Migrations extending this abstract will therefore also need to be updated, for example changing from:

```
public function up(Schema $schema)
```

to:

```
public function up(Schema $schema): void
```

[A script is available to apply these changes to all migrations within a project.](https://gist.github.com/DenisYaschuk/d3ade2d88d058cf9c971cf9d1f580a0f)

0 comments on commit e9c2dcf

Please sign in to comment.