A few deprecated function errors are appearing in the logs. This patch fixes them.

Deprecated function: Drupal\tome_sync\Normalizer\PathAliasNormalizer::__construct(): Implicitly marking parameter $entity_type_repository as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /home/xxx/d11/vendor/composer/ClassLoader.php)

Issue fork tome-3586893

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

mr.white created an issue. See original summary.

mr.white’s picture

StatusFileSize
new2.33 KB
bohus ulrych’s picture

Works. Thanks
Tested with PHP 8.4.21 and Drupal 11.3.9 and tome 1.14.0

tribekk made their first commit to this issue’s fork.

tribekk’s picture

Status: Active » Needs review

Opened MR !48.

This ports the existing PHP 8.4 nullable-parameter patch to an issue fork. The PathAliasNormalizer constructor now receives the required entity repository before the optional entity type repository and entity field manager dependencies, with those optional parameters explicitly nullable. The service arguments are reordered to match.

Checked locally: composer validate --no-check-publish; php -l modules/tome_sync/src/Normalizer/PathAliasNormalizer.php; git diff --check.

Credit to mr.white for the original patch.

tribekk’s picture

CI note for MR !48 / pipeline #829842:

Focused checks still pass:
- composer validate --no-check-publish
- php -l modules/tome_sync/src/Normalizer/PathAliasNormalizer.php
- git diff --check

I checked the failed jobs. They look unrelated to this patch: phpcs/cspell/eslint/stylelint report existing issues across the project, and phpstan/phpunit report existing PHPUnit 11/static data provider and Tome functional/kernel failures. None of the failures point at PathAliasNormalizer.php or the updated service argument.

larowlan’s picture

Status: Needs review » Fixed

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

Status: Fixed » Closed (fixed)

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