# Search results for "enum"

3844 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} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

1. [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
2. [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
3. [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 …
4. [Enumerated Types](https://externals.io/message/97294.md) — email #97294 in thread #97288, by Rowan Collins on 2016-12-05
   > (Off-topic: there are some place where I can found the internals talking about that? The externals.io not allows search.) The mailing list has a confusing number of different sites archiving it, all with their quirks. I find …
5. [Enumerate visible class names in current scope](https://externals.io/message/74359.md) — email #74359 in thread #74346, by johannes@schlueters.de on 2014-05-19
   > Hi Kris, Thanks for the quick reply. I found class_table HashTable structure in that zend function. But, do you know how to tell between user-defined classes and predefined ones? Please take a minute or two to try …
6. [[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 …
7. [[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
8. [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 …
9. [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 …
10. [Avoiding enum reserved keyword](https://externals.io/message/113414.md) — email #113414 in thread #113414, by Ilija Tovilo on 2021-03-07
   > Hi Nikita Another possibility would be to recognize T_**ENUM** in the lexer, but only if it is followed by whitespace and an identifier. This would possibly be friendlier for tooling using token_get_all(). It would not permit comments …
11. [Avoiding enum reserved keyword](https://externals.io/message/113242.md) — email #113242 in thread #113218, by Matthew Brown on 2021-02-23
   > Another possibility would be to recognize T_**ENUM** in the lexer, but only if it is followed by whitespace and an identifier. This would possibly be friendlier for tooling using token_get_all(). It would not permit comments in …
12. [[VOTE] Enumerations](https://externals.io/message/113198.md) — email #113198 in thread #113067, by Ben Ramsey on 2021-02-17
   > If that were to not pass, though, it seems supporting **enum** cases as keys would be worth exploring. Fully support allowing all objects as keys though. Others, please correct me if I’m wrong, but I believe each **enum** …
13. [[RFC] Enumerations, Round 2](https://externals.io/message/113053.md) — email #113053 in thread #112626, by Larry Garfield on 2021-02-02
   > … major change worth noting is that we renamed things. :-) An **enum** with no scalar backing is now called a Pure **Enum**, made up of Pure Cases. One that does have backing values is called a Backed **Enum**, made up of …
14. [[RFC] Enumerations](https://externals.io/message/112505.md) — email #112505 in thread #112417, by Paul Crovella on 2020-12-14
   > Hi Paul. Although we're on hold for a bit while Ilija makes some changes in direction (see previous email) I'm looking forward to seeing the results. **Enum**erations, as a general concept, are stateless. Or rather, the idea …
15. [[RFC] Enum proposal (yet another)](https://externals.io/message/58216.md) — email #58216 in thread #57928, by keisial@gmail.com on 2012-02-27
   > I'm not so sure about that. In a well-written web application, you would typically convert them on the first layer, when receiving from the web. On next usages, your int variables are usually ints already. Afraid not …
16. [[RFC] Enum proposal : Without type hinting first ?](https://externals.io/message/57995.md) — email #57995 in thread #57994, by Kris Craig on 2012-02-24
   > Agreed. Just to clarify in case my post confused anyone, we are not (at least to the best of my knowledge) in the process of developing the 6.0 release right now, nor am I suggesting that the ideas I …
17. [[RFC] Enum proposal (yet another)](https://externals.io/message/57951.md) — email #57951 in thread #57951, by Daniel Macedo on 2012-02-22
   > What Dmitri said is more than relevant! We see these coming back often, and would rather see a list of these «wants» and a discussion what on that list should/shouldn't be implemented and why. We can all see …
18. [RFC: Enum](https://externals.io/message/53038.md) — email #53038 in thread #52834, by Matthew Weier O'Phinney on 2011-06-06
   > One thing I would really like to see in 5.4 is **enum**s. There is already an RFC for that: https://wiki.php.net/rfc/**enum** This was discussed in february this year, but no consensus was reached. IIRC …
19. [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 …
20. [Inconsistency in enumerations RFC](https://externals.io/message/113589.md) — email #113589 in thread #113522, by Marc on 2021-03-17
   > … but that's currently not possible. I think it would be at least be helpful for example on mapping an **enum**eration from database to PHP as it's possible with doctrine types and probably also for static analyzers without th

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