Skip to content
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

Run tests on PHP 8.1 with different database drivers #4875

Merged
merged 1 commit into from Oct 15, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Oct 15, 2021

I've bumped all PHP 8.0 jobs for individual database drivers to PHP 8.1 to uncover issue that we might have there. If you think that testing on PHP 8.0 additionally provides extra value, I can re-add those jobs again. But for now, I did not want to bloat the test matrix further.

Fixes #4870

@derrabus derrabus marked this pull request as draft October 15, 2021 09:13
@derrabus
Copy link
Member Author

Marking as draft because I expect tests to fail.

@derrabus derrabus added this to the 2.13.5 milestone Oct 15, 2021
@@ -434,7 +433,7 @@ jobs:
coverage: "pcov"
ini-values: "zend.assertions=1"
tools: "pecl"
extensions: "${{ matrix.extension }}-5.9.0preview1"
extensions: "${{ matrix.extension }}-5.10.0beta1"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier releases of the driver are not compatible with PHP 8.1.

@derrabus
Copy link
Member Author

Tests are green. As usual, we need to adjust the branch protection rules.

Copy link
Member

@morozov morozov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


public static function upcast(mysqli_sql_exception $exception): self
{
$p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering, what the idea behind the mysqli_sql_exception API design is 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. A protected property without any accessors is a really brilliant idea.

@morozov morozov merged commit d2c3976 into doctrine:2.13.x Oct 15, 2021
@derrabus derrabus deleted the ci/database-drivers-php-8.1 branch October 15, 2021 18:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants