diff --git a/src/Localization.php b/src/Localization.php index a5a05ce..22925b5 100644 --- a/src/Localization.php +++ b/src/Localization.php @@ -307,7 +307,7 @@ public function getNonLocalizedURL($url = null) */ public function getLocalizedURL($locale = null, $url = null, $attributes = []) { - if ($locale === null) { + if (is_null($locale)) { $locale = $this->getCurrentLocale(); }