Problem/Motivation
- We get this warning with PHP 8.2:
Deprecated function: Creation of dynamic property Drupal\conditional_fields\DependencyHelper::$module_handler is deprecated in Drupal\conditional_fields\DependencyHelper->__construct() (line 98 of modules/contrib/conditional_fields/src/DependencyHelper.php).
Proposed resolution
- Attached MR
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3345459-Fix-PHP-8.2-deprecation-issue.diff | 491 bytes | maunm |
Issue fork conditional_fields-3345459
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:
- 3345459-fix-php-8.2
changes, plain diff MR !24
Comments
Comment #3
maunm commentedAttach the patch to quickly remediate on D10
Comment #4
paulocsMerge request looks good to me.
Comment #6
thallesComment #7
umekikazuya commentedPatch #3 has been confirmed to be working properly on Version 10.0.7.
Comment #8
rishi.kulshreshthaComment #9
heddn+1 on RTBC.
Comment #10
yovanny.gomez.oyola commentedPatch #3 works as expected.
Drupal core version: 10.1.2
conditional_fields version: 4.0.0-alpha3
Comment #11
anybodySame here. Any chance to merge this to get the warnings away, finally? :)
(And a tagged release, please)
Comment #13
heddnPushed and released https://www.drupal.org/project/conditional_fields/releases/4.0.0-alpha4.
Thanks everyone for your contributions.
Comment #14
anybody@heddn thank you, a thousand times :)