Re: RFC: Convert PSR-3 LogLevel to PHP 8.1+ Enum

2025-09-01 Thread 'Jordi Boggiano' via PHP Framework Interoperability Group
The main issue is that these are not equivalent because enums do not cast to string.. https://3v4l.org/TMoYI#v8.4.12 You'd have to use LogLevel::DEBUG->value to be equivalent. I had to do the same when migrating to enum for Monolog v3. IMO this is not worth the breakage it'd cause. Best, Jo

RFC: Convert PSR-3 LogLevel to PHP 8.1+ Enum

2025-08-28 Thread Junaid Farooq
on visit https://groups.google.com/d/msgid/php-fig/88b6a5e1-aab5-4d4a-bb40-c9f199812665n%40googlegroups.com. # RFC: Convert PSR-3 LogLevel to PHP 8.1+ Enum **Author:** Junaid Farooq **Date:** August 25, 2025 **Target:** PSR-3 Logger Interface **Proposed Version:** 4.0.0 (Major version due to PHP vers