Skip to content

Commit

Permalink
Merge pull request #3568 from morozov/connection-types
Browse files Browse the repository at this point in the history
Enforced parameter and return value types in Connection classes
  • Loading branch information
morozov committed Jun 13, 2019
2 parents 5d789fc + 0db92c0 commit c066aea
Show file tree
Hide file tree
Showing 25 changed files with 254 additions and 504 deletions.
9 changes: 9 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Upgrade to 3.0

## BC BREAK: Changes in the `Doctrine\DBAL\Connection` API

- The following methods have been removed as leaking internal implementation details: `::getHost()`, `::getPort()`, `::getUsername()`, `::getPassword()`.
- The `::getDatabase()` method can now return null which means that no database is currently selected.

## BC BREAK: Changes in `Doctrine\DBAL\Driver\SQLSrv\LastInsertId`

- The class stores the last inserted ID as a nullable string, not an integer, which is reflected in the method signatures.

## BC BREAK: Changes in the `Doctrine\DBAL\Schema` API

- Method `Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableViewDefinition()` no longer optionally returns false. It will always return a `Doctrine\DBAL\Schema\View` instance.
Expand Down
Loading

0 comments on commit c066aea

Please sign in to comment.