- Issue created by @yookoala
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.
Active
1.0
Code