-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Closed as not planned
Labels
inactiveDenotes the issue/PR has not seen activity in the last 90 days.Denotes the issue/PR has not seen activity in the last 90 days.php
Description
PHP 8.1 brought us Enumerations, which are absolutely perfect for use in Protobuf. Specifically, backed Enumerations would bring us exactly what we want:
enum Status: int
{
case STATUS_UNDEFINED = 0;
case ACTIVE = 1;
case INACTIVE = 2;
}
Now that this library supports a minimum of PHP 8.1, would the protobuf team entertain a change like this? We would want to put it behind an option, so as to prevent breaking changes.
marcosdsanchez, antonkomarev and MarcEspiard
Metadata
Metadata
Assignees
Labels
inactiveDenotes the issue/PR has not seen activity in the last 90 days.Denotes the issue/PR has not seen activity in the last 90 days.php