[PR #7167] Require PHP ^8.0 #10347

Open
opened 2026-01-22 16:07:15 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7167

State: closed
Merged: No


We already require PHP 7.2.
While having PHP 8.0 as minimum version, we can further:

  • Leverage native generics!
  • Leverage typed properties!
  • Use union and intersection types!
  • Use proper variance for complex types!
  • Use native enums!
  • Use typed callbacks!
  • Use native annotations!
  • ... and much more!

Of course, some of these features are not yet implemented, but why not use them ahead of time, right? :shipit:

This would essentially make the project the first to use shiny, new, not-yet-released PHP 8.0!.

Not yet supported by Travis/Scrutinizer.

^9.0 is a safety measure, we all know what happened to PHP 6. 😛

**Original Pull Request:** https://github.com/doctrine/orm/pull/7167 **State:** closed **Merged:** No --- We already require PHP 7.2. While having PHP 8.0 as minimum version, we can further: * Leverage native generics! * Leverage typed properties! * Use union and intersection types! * Use proper variance for complex types! * Use native enums! * Use typed callbacks! * Use native annotations! * ... and much more! Of course, some of these features are not yet implemented, but why not use them ahead of time, right? :shipit: This would essentially make the project _the first to use shiny, new, not-yet-released PHP 8.0!_. _Not yet supported by Travis/Scrutinizer._ _`^9.0` is a safety measure, we all know what happened to PHP 6. :stuck_out_tongue:_
admin added the pull-request label 2026-01-22 16:07:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10347