Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix tests failing with DBAL 3#42819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
derrabus commentedAug 31, 2021
I'd prefer to ignore fabbot's suggestion if that's okay. |
d3072e6 to45b011eCompare| $stmt =$this->getConnection()->prepare($sql); | ||
| $stmt->bindValue($i =1,$now, \PDO::PARAM_INT); | ||
| $stmt =$connection->prepare($sql); | ||
| $stmt->bindValue($i =1,$now,$useDbalConstants ? ParameterType::INTEGER :\PDO::PARAM_INT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Using the PDO constants on a DBAL 3 connection will break in PHP 8.1 because PDO changed the values of those constants. 😱
45b011e to5ee3ad4Comparesrc/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrinePingConnectionMiddlewareTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
23f9649 to784d948Compare784d948 to3ce1f76Comparefabpot commentedSep 1, 2021
Thank you@derrabus. |
Doctrine ORM is not blocking the installation of DBAL 3 anymore. This has revealed a few tests that were not fully compatible with DBAL 3. This PR is an attempt to fix them.