- Issue created by @yookoala
- Status changed to Fixed
5 months ago 11:21am 2 July 2024 - Status changed to Fixed
5 months ago 2:58am 6 July 2024
The current module will trigger deprecation message in PHP 8.2. The creation of dynamic property will probably be deprecated in PHP 9 and hence no longer usable. The error message:
Deprecated function: Creation of dynamic property Drupal\theme_per_user\Theme\ThemeSwitcher::$user_id is deprecated in Drupal\theme_per_user\Theme\ThemeSwitcher->applies() (line 90 of modules/contrib/theme_per_user/src/Theme/ThemeSwitcher.php).
Install the module to a Drupal 10+ under PHP 8.2.
Use local variable "$user_id" instead of "$this->user_id" in the "ThemeSwitcher::applies()" function.
Reason:
Coding and review.
None.
Probably none. Did not find any usage of ThemeSwitcher from outside
None.
Fixed
1.0
Code