# Search results for "enum"

3847 results, page 1 of 50. Each result is an email: results with the same thread number are in the same thread. The link opens the thread as Markdown, find the email in it by its number.

More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

1. [[VOTE] [RFC] Add Filter\Filter and Filter\Flag Enums](https://externals.io/message/132882.md) — email #132882 in thread #132882, by Muhammed Arshid KV on 2026-10-20
   > Hi all, The voting process for the "Add Filter\Filter and Filter\Flag **Enum**s" RFC is now ready to begin. RFC: https://wiki.php.net/rfc/invalid_filter_options PR: https://github.com/php/php-src/pull/24111 Discussion thread …
2. [[Discussion] Add Filter\Filter and Filter\Flag Enums to the Filter Extension](https://externals.io/message/132783.md) — email #132783 in thread #132783, by Muhammed Arshid KV on 2026-10-05
   > Hi internals, I would like to start an RFC for adding Filter\Filter and Filter\Flag backed **enum**s to the filter extension. The proposal adds type-safe and more discoverable alternatives to the existing integer filter and flag constants. The …
3. [[VOTE] RFC: Debugable Enums](https://externals.io/message/130663.md) — email #130663 in thread #130533, by Daniel Scherzer on 2026-04-18
   > … scherzer@gmail.com wrote: Hi internals, Voting is now open for this RFC. RFC: https://wiki.php.net/rfc/debugable-**enum**s Discussion thread: https://news-web.php.net/php.internals/130303 Voting will end 2026-04-16 at end-of …
4. [[VOTE] enum SortDirection](https://externals.io/message/130527.md) — email #130527 in thread #130395, by tim@bastelstu.be on 2026-04-01
   > Hi Am 2026-03-18 16:50, schrieb Tim Düsterhus: I just opened voting on the “**enum** SortDirection” RFC. The RFC document is available at: https://wiki.php.net/rfc/sort_direction_**enum** You can find the Discussion at: https …
5. [[RFC] [Discussion] Debugable enums](https://externals.io/message/130504.md) — email #130504 in thread #130303, by Daniel Scherzer on 2026-03-30
   > … internals, I'd like to start the discussion for a new RFC about removing the prohibition on __debugInfo() methods on **enum**s. RFC: https://wiki.php.net/rfc/debugable-**enum**s Implementation: https://github.com/php/php-src/pull/21425 This is …
6. [[RFC] enum SortDirection](https://externals.io/message/130370.md) — email #130370 in thread #130226, by tim@bastelstu.be on 2026-03-16
   > … g. “8.6.0 The $sorting_order parameter was widened to int|SortDirection”). I suppose that tools like Rector will also be able to suggest migrating from the old constants to the **enum** when that happens. Best regards Tim Düsterhus
7. [RFC Karma request: Enums with Associated Values for cases](https://externals.io/message/130007.md) — email #130007 in thread #130007, by Larry Garfield on 2026-02-04
   > Hello, I would like to get RFC Karma for my wiki account. My username is: jkroon. The proposed RFC will introduce **Enum**s with Associated Values for cases and is inspired by Rust and Swift. For example it would allow …
8. [RFC Karma request: Enums with Associated Values for cases](https://externals.io/message/130006.md) — email #130006 in thread #130006, by Jordi Kroon on 2026-02-04
   > Hello, I would like to get RFC Karma for my wiki account. My username is: jkroon. The proposed RFC will introduce **Enum**s with Associated Values for cases and is inspired by Rust and Swift. For example it would allow for …
9. [Backed Enum and serialization](https://externals.io/message/129670.md) — email #129670 in thread #129670, by ignace nyamagana butera on 2025-12-22
   > Hi all, recently through Máté, I discovered that Backed **Enum** behaviour was changed for http_build_query in PHP8.4 see the github PR https://github.com/php/php-src/issues/15650 This change was never discussed on the mailing …
10. [[RFC] [Discussion] Stringable Enums](https://externals.io/message/129564.md) — email #129564 in thread #129540, by Larry Garfield on 2025-12-05
   > … think it would cause any harm? I found to semi-commonly (the ergonomics of querying are bad) add attributes to **enum** cases. A __debugInfo() handler could provide information about all attached metadata. Bob Ah, interesting case. OK, color me unopposed …
11. [enum flag backed enum](https://externals.io/message/128648.md) — email #128648 in thread #128616, by Rowan Tommins [IMSoP] on 2025-09-06
   > … int { ... } } With general-purpose generics, you can make that strongly typed: **enum** FooOption { ... } class Foo { ... function setOption(FooOption $opt): void { ... } function getCurrentOptions(): Set<FooOption> { ... } } A specific **Enum**BitSet<T> could implement the integer serialisation: class **Enum**BitSet<T> extends Set<T&gt
12. [::from() and tryFrom() on Basic Enums](https://externals.io/message/127992.md) — email #127992 in thread #127970, by Rowan Tommins [IMSoP] on 2025-07-10
   > … undeniable that a Unit **Enum** name is a string. If you want to associate a single string value with each **enum** case, use a string-backed **enum**, and propose some short-hand syntax. Please leave unit **enum**s as opaque objects …
13. [ReflectionClass output for enums](https://externals.io/message/126567.md) — email #126567 in thread #126504, by Gina P. Banyard on 2025-03-04
   > Hi internals, A few months back I sent https://github.com/php/php-src/pull/15956 for improving the output of ReflectionClass::__toString() when used for **enum**s (and ReflectionEnum::__toString(), which just inherits that method). Since this is technically …
14. [Enums should implement Stringable interface by default](https://externals.io/message/126527.md) — email #126527 in thread #126522, by Larry Garfield on 2025-02-28
   > … multiple **enum**-like things which the user could choose between. Also see: https://peakd.com/hive-168588/@crell/on-the-use-of-**enum**s Not auto-implementing Stringable was a deliberate design decision, for reasons that have not changed. --Larry Garfield
15. [Enum + property hook getter](https://externals.io/message/126358.md) — email #126358 in thread #126332, by Marc Bennewitz on 2025-02-09
   > … actually support properties and semantics might need to be different than those a naive “rushed” implementation of property hooks for **enum**s would propose. See https://wiki.php.net/rfc/tagged_unions for an very early draft (which is not in …
16. [Idea: Inline enum](https://externals.io/message/126139.md) — email #126139 in thread #126139, by Marc Bennewitz on 2024-12-19
   > … **enum**:string { case DayOfMonth = 'j'; // ... }; public const TIME_TOKEN = **enum**:string { case Hour = 'h'; // ... }; } class AnotherFormatter { public const DATE_TOKEN = **enum**:string { case DayOfMonth = 'd'; // ... }; public const TIME_TOKEN = **enum**:string { case Hour = 'h'; // ... }; } $token = MyFormatter::DATE_TOKEN::DayOfMonth; $token …
17. [[RFC] [Discussion] Add get_declared_enums() function](https://externals.io/message/125759.md) — email #125759 in thread #125719, by Mike Schinkel on 2024-10-06
   > Hi Nicolas, Introduction of the new function: get_declared_**enum**s() About this proposal, I shared a one-liner in the previous thread that shows listing only **enum**s is trivial already. IMHO we don't need this function since the …
18. [String enums & __toString()](https://externals.io/message/125047.md) — email #125047 in thread #124991, by Levi Morrison on 2024-08-19
   > … poked around a bit in the **Enum** RFCs and I could find (maybe I missed) what's up with this: **enum** Foo:string implements \Stringable { case FOO = 'bar'; public function __toString() { return $this->value; } } PHP Fatal error: **Enum** Foo cannot …
19. [Should there be a `get_declared_enums()` function ?](https://externals.io/message/125046.md) — email #125046 in thread #124937, by Juliette Reinders Folmer on 2024-08-19
   > … function. Should a get_declared_**enum**s() function be added ? And should the get_declared_classes() function be adjusted to exclude **enum**s ? I did check the **enum** RFC [3], but I couldn't find any mention or discussion about this in …
20. [[DISCUSSION] Class Constant Enums?](https://externals.io/message/125003.md) — email #125003 in thread #124968, by Larry Garfield on 2024-08-16
   > Hello Larry, I feel obliged to remind about the 80/20 rule where the last 20% of progress ends up being 80% of all the work. And from the discussion it's already looking like there are some major …

Next page: https://externals.io/search.md?q=enum&page=2
