Open jyrkidn opened 3 months ago
LanguageSwitch.php
file, specifically in the isVisibleOutsidePanels
method, has been updated to retrieve the name of a route in a safer way. It now uses an updated syntax request()->route()?->getName()
, ensuring the application avoids potential errors when trying to access the name of a route that might not exist. The updated code provides enhanced stability and reduces the chance of unexpected crashes.
Since 404 routes return
null
this breaks callinggetName()
. Adding?
fixes this