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,
Jordi
Junaid Farooq --
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/php-fig/88b6a5e1-aab5-4d4a-bb40-c9f199812665n%40googlegroups.com.
-- Jordi Boggiano @seldaek - https://seld.be