Re: [PHP-DEV] Literal types RFC

2020-10-04 Thread Bogdan Ungureanu
. On Mon, Oct 5, 2020 at 2:56 AM Max Semenik wrote: > пн, 5 окт. 2020 г., 02:38 Bogdan Ungureanu : > >> >> function getStatus(): "draft" | "published" { } >> > > It sounds that what you're really asking for is enums, e.g. > > enum

[PHP-DEV] Literal types RFC

2020-10-04 Thread Bogdan Ungureanu
e completed, but I think I can finish it with some guidance/help from you. Regards, Bogdan Ungureanu