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

Drop support for DBAL 2, PHP 7.2, Symfony 3, Persistence 1 #1250

Merged
merged 4 commits into from Apr 4, 2022

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Apr 1, 2022

DBAL 2 will no longer be supported tomorrow, and DBAL 3 requires PHP 7.3

}
try {
return $connection->getNativeConnection();
} catch (LogicException $e) {
}

$innermostConnection = $connection;
Copy link
Member Author

Choose a reason for hiding this comment

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

Todo: check if the code below is still useful

Copy link
Member Author

Choose a reason for hiding this comment

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

From what I understood, it will be useful until DBAL 4, when we are sure that getNativeConnection can no longer throw a LogicException.

@greg0ire greg0ire changed the title Drop support for DBAL 2 Drop support for DBAL 2 and PHP 7.2 Apr 1, 2022
@greg0ire greg0ire force-pushed the drop-dbal2 branch 2 times, most recently from 1eb6790 to e1d1da5 Compare April 1, 2022 22:05
@@ -13,7 +13,6 @@ cache:

environment:
matrix:
- php: 7.2.25
Copy link
Member Author

Choose a reason for hiding this comment

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

Todo: determine what our policy for testing on appveyor shall be

@greg0ire greg0ire marked this pull request as ready for review April 2, 2022 10:56
@greg0ire greg0ire requested a review from derrabus April 2, 2022 10:56
@greg0ire greg0ire removed the request for review from derrabus April 2, 2022 11:14
@greg0ire greg0ire marked this pull request as draft April 2, 2022 11:14
@greg0ire

This comment was marked as resolved.

@greg0ire greg0ire changed the title Drop support for DBAL 2 and PHP 7.2 Drop support for DBAL 2, PHP 7.2, Symfony 3, Persistence 1 Apr 2, 2022
@greg0ire greg0ire force-pushed the drop-dbal2 branch 2 times, most recently from 8375ba4 to beea147 Compare April 2, 2022 13:14
@greg0ire greg0ire requested review from derrabus and goetas April 2, 2022 13:16
@greg0ire greg0ire marked this pull request as ready for review April 2, 2022 13:16
composer.json Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
"symfony/cache": "^3.4.26 || ^4.2.12 || ^5.0 || ^6.0",
"symfony/process": "^3.4 || ^4.0 || ^5.0 || ^6.0",
"symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0"
"phpunit/phpunit": "^9.4",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"phpunit/phpunit": "^9.4",
"phpunit/phpunit": "^9.5",

PHPUnit 9.4 is dead and buried.


<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint">
<exclude-pattern>*/lib/*</exclude-pattern>
</rule>
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe I should remove those, git add --patch the parts that are backwards compatible, and restore these lines. But that would probably be best in a separate PR for the sake of review.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just tried it, and it's not that complicated to untangle, I'll push it as an extra commit.

@greg0ire greg0ire force-pushed the drop-dbal2 branch 3 times, most recently from 2a8685e to 8da97d4 Compare April 4, 2022 18:49
@greg0ire
Copy link
Member Author

greg0ire commented Apr 4, 2022

I think that the 2 issues reported by the BC check can be safely ignored.

@greg0ire greg0ire requested a review from derrabus April 4, 2022 18:51
DBAL 3 requires PHP 7.3
This includes:
- private properties
- public properties of final classes

protected properties must have the same type or lack thereof as their
parent.
@greg0ire greg0ire merged commit 5713b45 into doctrine:3.5.x Apr 4, 2022
@greg0ire greg0ire deleted the drop-dbal2 branch April 4, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants