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

Require PHP 8.1 #9925

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Require PHP 8.1 #9925

merged 1 commit into from
Aug 3, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jul 20, 2022

I'd like to propose to (once again) bump the minimum PHP version for the 3.0 branch to PHP 8.1.

Symfony did the same thing, mainly because of problems related to property types and preloading. I think, those problems will also apply to us, now that we add more and more native property types to the codebase. DBAL 4 will also require PHP 8.1 (doctrine/dbal#5543).

Among the installations that upgrade to our latest feature releases, PHP 8.1 has already reached a share of nearly 50%. PHP 8.0 on the other hand will only receive bugfixes for a few months.

Regarding features, I believe that readonly properties will come in handy, especially for public properties on our attribute classes. Since making those properties readonly is technically a BC break, the 3.0 release would be a good opportunity for that change.

greg0ire
greg0ire previously approved these changes Jul 21, 2022
@derrabus derrabus added this to the 3.0.0 milestone Jul 25, 2022
@derrabus derrabus merged commit 3c19eb6 into doctrine:3.0.x Aug 3, 2022
@derrabus derrabus deleted the bump/php-8.1 branch August 3, 2022 21:01
@greg0ire greg0ire mentioned this pull request Aug 3, 2022
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.

3 participants