> To resolve these issues, change the naming to something appropriate and
use Enums instead of int constants.
Hi!
I like the idea. But I don't know
From the RFC text:
> To summarize, existing features will be changed to a union type of int|
\RoundingMode, and unreleased features will only accept \RoundingMode as
the rounding mode argument.
I have mixed feelings about the unreleased features using a different
typing for the same parameters that already exist in the existing features.
On one side, the user would be forced to use the new approach and get used
to it when they start to use the unreleased features, but on the other
side, the code would be strange with 2 different approaches for similar
features of the same "feature set".
I think that I would use union types for everything and plan the
deprecation and further removal of the Int version for the next releases
for everything.
Anyway, I'm in favor of starting the movement of changing these Ints to
Enums.
Thanks for working to make PHP better!
Best regards,
Erick