Closed reinder83 closed 3 years ago
By allowing DateTimeInterface we are not forced to give a DateTime class or a class which extends from it, by allowing DateTimeInterface you're more flexible, which is essentially the same, since DateTime and Carbon implement this interface
By allowing DateTimeInterface we are not forced to give a DateTime class or a class which extends from it, by allowing DateTimeInterface you're more flexible, which is essentially the same, since DateTime and Carbon implement this interface