Problem/Motivation
Using PHP8.4 I am seeing some deprecation warnings, with drupal/panels and drupal/page_manager:
// Panels
Deprecated function: Drupal\panels\Form\PanelsAddBlockForm::buildForm(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
Deprecated function: Drupal\panels\Storage\PanelsStorageManager::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
Deprecated function: Drupal\panels\Storage\PanelsStorageManagerInterface::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
Deprecated function: Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
// Page manager
Deprecated function: Drupal\page_manager\Entity\PageVariantViewBuilder::resetCache(): Implicitly marking parameter $entities as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
Deprecated function: Drupal\page_manager\Plugin\SectionStorage\PageManagerSectionStorage::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).
Deprecated function: Drupal\page_manager_ui\Form\VariantPluginAddBlockForm::buildForm(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/vendor/composer/ClassLoader.php).Steps to reproduce
- Install Drupal WxT 6.2.x/6.3.x.
- Upgrade the PHP runtime to PHP 8.4.
- Clear caches via the UI or with Drush.
- Observe the deprecation notices above.
Proposed resolution
Apply patches from two related tickets.
Comments
Comment #2
smulvih2All identified PHP8.4 deprecations have been fixed in 6.3.x.
Comment #4
joseph.olstadNice!