Skip to content

Commit

Permalink
Merge pull request doctrine#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 May 31, 2019
2 parents 7a8506c + b8025b9 commit f1114a0
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 f1114a0

Please sign in to comment.