Closed pfazzi closed 5 years ago
The stringify function is a bit simplistic. Would need to be a major change for this as backward compatibility could be an issue for anyone working with the current pattern. Though, you could extend the Assertion class and present your own stringify method.
That is true, it can cause backward compatibility. I would not like to extend the class so i'll look for another solution. Thanks anyway.
It could be useful that method
Assertion::stringify($value)
returns the ISO representation of the$value
if the value argument implements DateTimeInterface. It will be good in cases like this:The rendered message now is:
I'd like to have something like: