Problem/Motivation

Deprecated: Drupal\pathauto\Plugin\Action\UpdateAction::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/web/modules/contrib/pathauto/src/Plugin/Action/UpdateAction.php on line 31

Steps to reproduce

  • Use PHP 8.4
  • Install module

Issue fork pathauto-3548914

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

daniel.pernold created an issue. See original summary.

daniel.pernold’s picture

More to come:

Deprecated: Drupal\pathauto\AliasStorageHelper::__construct(): Implicitly marking parameter $entity_type_manager as nullable is deprecated, the explicit nullable type must be used instead in /var/www/web/modules/contrib/pathauto/src/AliasStorageHelper.php on line 79
Deprecated: Drupal\pathauto\PathautoGenerator::__construct(): Implicitly marking parameter $alias_type_manager as nullable is deprecated, the explicit nullable type must be used instead in /var/www/web/modules/contrib/pathauto/src/PathautoGenerator.php on line 139
daniel.pernold’s picture

Issue summary: View changes
lostcarpark’s picture

I get the following when running drush updb on a site with pathauto enabled:

PHP Deprecated: Drupal\pathauto\Commands\PathautoCommands::generateAliases(): Implicitly marking parameter $types as nullable is deprecated, the explicit nullable type must be used instead in /web/modules/contrib/pathauto/src/Commands/PathautoCommands.php on line 89

PHP Deprecated: Drupal\pathauto\Commands\PathautoCommands::deleteAliases(): Implicitly marking parameter $types as nullable is deprecated, the explicit nullable type must be used instead in /web/modules/contrib/pathauto/src/Commands/PathautoCommands.php on line 135

PHP Deprecated: Drupal\pathauto\AliasStorageHelper::__construct(): Implicitly marking parameter $entity_type_manager as nullable is deprecated, the explicit nullable type must be used instead in /web/modules/contrib/pathauto/src/AliasStorageHelper.php on line 79

lostcarpark’s picture

This issue seems to be resolved by #3489108: Fix PHP 8.4 implicit nullable deprecation, so can probably be closed as a duplicate.

berdir’s picture

Status: Active » Closed (duplicate)

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

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

Maintainers, please credit people who helped resolve this issue.