Problem/Motivation
After update to PHP 8.2 there is the following message:
Deprecated function: Creation of dynamic property Drupal\administration_language_negotiation\AdministrationLanguageNegotiationConditionManager::$cacheKeyPrefix is deprecated in Drupal\administration_language_negotiation\AdministrationLanguageNegotiationConditionManager->__construct() (line 49 of modules/contrib/administration_language_negotiation/src/AdministrationLanguageNegotiationConditionManager.php).
Steps to reproduce
Go to `/admin/config/regional/language/detection/administration_language`
Proposed resolution
Declare $cacheKeyPrefix as protected string like Core language module LanguageNegotiationMethodManager class does.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | deprecated-function-creation-of-dynamic-property-3366786.patch | 753 bytes | eason xu |
Issue fork administration_language_negotiation-3366786
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pakmanlhComment #5
polComment #7
eason xu commentedComment #8
polDear Eason,
Can you explain what is this patch and why you posted it here in a closed issue ?
Comment #9
eason xu commentedDear Pol,
Don't worry about this, it's just because I still encounter this problem in the version I am using, and there is no need to open a new issue .
Comment #10
steveoriolThis patch need to be apply to the current branch "2.0.0", not only for the dev one.
Comment #11
anybodyI tagged a new 2.0.1 release with this fix now!