-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Added doctrine/dbal v4.0. #7
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
Conversation
|
@tasselchof Please make it compatible with PHP7.1, it's not very complicated. |
Except doctrine/dbal:^3.8 requires at least PHP 7.4, so it is impossible to do this. I think PHP 7 should be dropped from supported versions. |
src/Adapter.php
Outdated
| public function initTable() | ||
| { | ||
| $sm = $this->connection->getSchemaManager(); | ||
| $sm = $this->connection->createSchemaManager(); |
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.
You can make some assertions here to ensure compatibility with lower versions.
src/Adapter.php
Outdated
| { | ||
| $queryBuilder = $this->connection->createQueryBuilder(); | ||
| $stmt = $queryBuilder->select('p_type', 'v0', 'v1', 'v2', 'v3', 'v4', 'v5')->from($this->policyTableName)->execute(); | ||
| $stmt = $queryBuilder->select('p_type', 'v0', 'v1', 'v2', 'v3', 'v4', 'v5')->from($this->policyTableName)->executeQuery(); |
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.
And here
|
Fix: #6 |
|
🎉 This PR is included in version 2.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fix: #6