-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC Break after removing method \Doctrine\DBAL\Driver\PDOConnection::quote #4281
Comments
The removed method had an |
Small digression: |
I confirm TypeError. Also backward compatibility was broken |
Phpstan says it's an API violation: https://phpstan.org/r/c7f52e44-e49b-4905-b829-df22ff5cd7f9 |
In this case, the caller deals with a driver connection which happens to be implemented via PDO but should allow passing anything: dbal/lib/Doctrine/DBAL/Driver/Connection.php Lines 31 to 39 in b5e1599
While it's technically a BC break, there are a few of circumstances:
Before fixing it in |
There is no reason for quote an integer, just the old api allowed to do it, the problem was discovered by accident during testing after the update. |
The API still allows it, so it has to be fixed. I'm going to assign this issue to the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem appeared in releases 2.10.3 commit
The problem is that now, with strict mode enabled, nothing but string cannot be passed to \Doctrine\DBAL\Driver\PDOConnection::quote. These changes break backward compatibility and should not have been recorded as minor changes.
The text was updated successfully, but these errors were encountered: