Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix middleware return type #80

Merged
merged 1 commit into from Jan 25, 2024
Merged

fix middleware return type #80

merged 1 commit into from Jan 25, 2024

Conversation

bezhanSalleh
Copy link
Owner

Closes #79

@bezhanSalleh bezhanSalleh merged commit d18394f into main Jan 25, 2024
10 checks passed
@bezhanSalleh bezhanSalleh deleted the fix/#79 branch January 25, 2024 17:02
Copy link

what-the-diff bot commented Jan 25, 2024

PR Summary

  • Locale Handling Method Update
    The method which handles language localization in our system, found in SwitchLanguageLocale.php file, has been updated. This change allows it to accommodate a wider variety of return types, increasing its flexibility in handling different situations during its execution.

  • Locale Value Assignment Update
    We have refined the way the variable $locale(which represents chosen language for user interface) is set. It now uses the null coalescing operator, a safer programming practice. This ensures that a default value is automatically used if the usual sources for the desired language setting (session or query parameters) do not provide a value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Middleware handle function return type
1 participant