Fix LanguageNegotiationMethodInterface::getLangcode() result docblock

Created on 8 April 2020, over 4 years ago
Updated 26 January 2023, over 1 year ago

Problem/Motivation

Currently, the docblock says:

   * @return string
   *   A valid language code or FALSE if the negotiation was unsuccessful.

But all implementations return NULL when "unsuccessful".

Proposed resolution

Document string|NULL as result or, alternatively, consider to returning empty string instead of NULL.

Remaining tasks

1) Agree on result type
2)
3) Commit

User interface changes

N/A

API changes

TBD

Data model changes

N/A

Release notes snippet

N/A

🐛 Bug report
Status

Fixed

Version

9.5

Component
Language system 

Last updated about 23 hours ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024