Skip to content

Commit 3e46b11

Browse files
authored
Document the PDO subclasses backport (#7137)
| Q | A |------------- | ----------- | Type | documentation | Fixed issues | N/A #### Summary Deprecations introduced with PHP 8.5 forced us to backport #6532 as #7132. In this PR, I'm also backporting the entry from our UPGRADE.md documentation.
1 parent b8736bd commit 3e46b11

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

UPGRADE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ awareness about deprecated code.
88

99
# Upgrade to 3.10
1010

11+
## Support for new PDO subclasses on PHP 8.4
12+
13+
In 3.10.2, we've backported support for new PDO subclasses introduced in PHP 8.4 because not using them
14+
could trigger deprecation warnings under certain circumstances in PHP 8.5.
15+
16+
On PHP 8.4, if you call `getNativeConnection()` on a connection established through one of the PDO drivers,
17+
you will get an instance of the new PDO subclasses, e.g. `Pdo\Mysql` or `Pdo\Pgsql` instead of just `PDO`.
18+
19+
## Optional `doctrine/cache` dependency
20+
1121
The `doctrine/cache` package is now an optional dependency. If you are using the
1222
`Doctrine\DBAL\Cache` classes, you need to require the `doctrine/cache` package
1323
explicitly.

0 commit comments

Comments
 (0)