-
Notifications
You must be signed in to change notification settings - Fork 40
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
doctrine/dbal ^4.0.0 #84
Conversation
@Jean85 could you please take a look? |
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.
Thank you for this PR, I'll try to work with you to make viable and release it!
I agree that this will require a new major, I'll later change it to target a new major branch; in the meantime, I'll backport whatever makes sense (like the Psalm fixes) from this PR to the existing major.
I've left some comments; also, for Infection, to fix it you have to add a test that would fail when editing the code in the mutated cases that it highlights.
|
||
- php-version: "8.3" | ||
mysql-version: "5.7" | ||
custom-entrypoint: ~ | ||
job: Tests | ||
- php-version: "8.2" | ||
|
||
- php-version: "8.3" | ||
mysql-version: "5.7" | ||
job: Tests |
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.
Here you created a duplicate. You should test MySQL 8 against PHP 8.1
@@ -109,7 +111,7 @@ jobs: | |||
command: vendor/bin/php-cs-fixer fix --dry-run --ansi --verbose | |||
- name: Psalm | |||
commandName: Run Psalm analysis | |||
command: vendor/bin/php-cs-fixer fix --dry-run --ansi --verbose | |||
command: vendor/bin/psalm --show-info=true |
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.
Wow nice catch!
composer.json
Outdated
"php": "^7.4 || ^8.0", | ||
"doctrine/dbal": "^3.6.0" | ||
"php": "^8.1", | ||
"doctrine/common": "^3.4", |
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.
Why do we need doctrine/common
?
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.
It was required because some class was missing from common namespace
docker/Dockerfile
Outdated
# zsh / OhMyZsh | ||
RUN apk --no-cache add git zsh | ||
|
||
ARG COMPOSER_VERSION=2.5.5 | ||
RUN curl -sS https://getcomposer.org/installer | php -- \ | ||
--install-dir=/usr/local/bin --filename=composer --version=$COMPOSER_VERSION | ||
|
||
USER facile | ||
RUN sh -c "$(curl -fsSLv https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
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.
Please do not remove this custom shell.
I've backported some of your fixes with #84, and retargeted this PR to the new |
@Jean85 Thanks for help and so fast response! This will allow use to use ORM4 and Symfony 7 ❤️ |
Thank you for the help! Also, keep in mind that ORM 3 is still usable with DBAL 3, you're not forced to upgrade them together, you can split the upgrade. |
This should be a major version because:
dbal is using union type which are from PHP8.0
dbal require php8.1
fixed also psalm in ci (it was not running)
increased mutation score