Skip to content

Add some validations when resolving language - #2650

Merged
monkeyiq merged 4 commits into
masterfrom
fix-language-validation
Jul 5, 2026
Merged

monkeyiq merged 4 commits into
masterfrom
fix-language-validation

Conversation

@cicnavi

@cicnavi cicnavi commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Add some validations against availableLanguages when setting a language.

@cicnavi
cicnavi marked this pull request as draft July 2, 2026 15:28
@cicnavi

cicnavi commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

I'll fix tests...

@codecov

codecov Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.83%. Comparing base (d4f80ea) to head (33d4388).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2650      +/-   ##
============================================
+ Coverage     46.76%   46.83%   +0.07%     
- Complexity     4290     4294       +4     
============================================
  Files           184      184              
  Lines         13830    13843      +13     
============================================
+ Hits           6467     6483      +16     
+ Misses         7363     7360       -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cicnavi

cicnavi commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

This is now updated so it takes into account the scenario when the default language and the custom language function use a value not listed in language.available....

@cicnavi
cicnavi marked this pull request as ready for review July 3, 2026 07:59
@cicnavi
cicnavi requested review from monkeyiq and tvdijen July 3, 2026 07:59
@monkeyiq

monkeyiq commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

This stood on the toes of the test case of #2649 a little bit. As they didn't really conflict I did a simple keep both merge and a tiny, tiny frame update for the patch to get it going. That seems to have run into issues with whitespace in the web editor but I should be able to update for that now.

@monkeyiq
monkeyiq merged commit 73203c2 into master Jul 5, 2026
38 checks passed
lordelph pushed a commit to liblynx-llc/simplesamlphp that referenced this pull request Aug 9, 2026
* Add some validations when resolving language

* Validate against known languages instead of available languages

* php code sniffer

---------

Co-authored-by: monkeyiq <monkeyiq@gmail.com>
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.

3 participants