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

  1. Install Drupal WxT 6.2.x/6.3.x.
  2. Upgrade the PHP runtime to PHP 8.4.
  3. Clear caches via the UI or with Drush.
  4. Observe the deprecation notices above.

Proposed resolution

Apply patches from two related tickets.

Comments

smulvih2 created an issue. See original summary.

smulvih2’s picture

Version: 6.2.x-dev » 6.3.x-dev
Status: Active » Fixed

All identified PHP8.4 deprecations have been fixed in 6.3.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

joseph.olstad’s picture

Nice!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.