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 4691e2e commit d9fc027Copy full SHA for d9fc027
app/code/Magento/Customer/Block/Widget/Dob.php
@@ -468,12 +468,12 @@ private function setTwoMonthPlaces(string $format): string
468
/**
469
* Normalize the dob for a proper output on the frontend
470
*
471
- * @param bool|string $value
+ * @param bool|string|null $value
472
* @return bool|string
473
*/
474
- private function normalizedDobOutput(bool|string $value): bool|string
+ private function normalizedDobOutput(bool|string|null $value): bool|string
475
{
476
- if ($value === false) {
+ if ($value === false || $value === null) {
477
return false;
478
}
479
$locale = $this->localeResolver->getLocale();
0 commit comments