This PR resolves #106
As discussed in the issue, we are sunsetting Carbon in an upcoming release of Socrates.
Until then, a temporary getDateOfBirthNative() method was added that returns a vanilla PHP DateTime instance, and the old getDateOfBirth() method has been marked as deprecated.
Additionally, tests were written to make sure we support both Carbon and DateTime instances.
I also threw in some minor improvements to some extractors and validators.
This PR resolves #106 As discussed in the issue, we are sunsetting Carbon in an upcoming release of Socrates. Until then, a temporary
getDateOfBirthNative()
method was added that returns a vanilla PHPDateTime
instance, and the oldgetDateOfBirth()
method has been marked as deprecated.Additionally, tests were written to make sure we support both
Carbon
andDateTime
instances. I also threw in some minor improvements to some extractors and validators.