We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ef117 commit e466720Copy full SHA for e466720
app/code/Magento/Customer/Model/Validator/Dob.php
@@ -53,12 +53,12 @@ public function isValid($customer): bool
53
* Check if specified dob is not in the future
54
*
55
* @param string|null $dobValue
56
- * @param DateTimeZone|null $timezone
+ * @param DateTimeZone $timezone
57
* @return bool
58
*/
59
- private function isValidDob(?string $dobValue, ?DateTimeZone $timezone = null): bool
+ private function isValidDob(?string $dobValue, DateTimeZone $timezone): bool
60
{
61
- if ($dobValue != null) {
+ if ($dobValue) {
62
63
// Get the date of birth and set the time to 00:00:00
64
$dobDate = new \DateTime($dobValue, $timezone);
0 commit comments