- Issue created by @kretzschr
- Status changed to Closed: won't fix
almost 2 years ago 7:21pm 21 February 2023
Updating OpenSocial to version 11.7.* and using Drupal core 9.4.* requires a switch from PHP 7.4 to PHP 8.1. After the running the update process method definitions of theme plugin socialcustom are not compatible with their inherited base class definitions:
Drupal\socialcustom\Plugin\Alter\ThemeSuggestions::alter
Drupal\socialcustom\Plugin\Preprocess\Container::preprocess
Drupal\socialcustom\Plugin\Preprocess\Html::preprocess
Drupal\socialcustom\Plugin\Preprocess\Node::preprocess
Drupal\socialcustom\Plugin\Preprocess\Page::preprocess
Error message (example):
Fatal error: Declaration of Drupal\socialcustom\Plugin\Alter\ThemeSuggestions::alter(&$suggestions, &$context = null, &$hook = null) must be compatible with Drupal\socialbase\Plugin\Alter\ThemeSuggestions::alter(&$suggestions, &$context1 = null, &$hook = null): void in /var/www/html/html/themes/custom/socialcustom/src/Plugin/Alter/ThemeSuggestions.php on line 19
Add missing "void" statements for mentioned methods
None
None
None
Closed: won't fix
11.7
Code (back-end)