![]() ![]() ![]() Where union types require the input to be one of the given types, intersection types require the input to be all of the specified types. To install a newer PHP release, enable the appropriate version: PHP 7.3 sudo dnf module reset php sudo dnf module enable php:remi-7.3 PHP 7. PHP 8. You already know about union types in PHP 8.0, and intersection types are a similar feature. Currently the required PHP minimum version is PHP 7.4: the last release was 7.4.32 on 29th September 2022, and security support ends on 28th November 2022, so. Enums will be added in PHP 8.1! If you're unsure what they can be used for, you can read about them here.Īdding enums would be a significant improvement in PHP, so I for one am very much looking forward seeing enums arrive in PHP 8.1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |