Problem/Motivation

PHP 8.4 has been released, and webform_entity_view is triggering a "use explicit nullable type" deprecation.

This is part of Drupal's coding standards now, but since the issues to fix phpcs in this module have stalled, I'm opening up this issue to fix this single deprecation to avoid the warnings on PHP 8.4.

After updating to PHP 8.4:

------ --------------------------------------------------------------------------------------------------------------------------------
Line webform_entity_view/src/Plugin/WebformElement/WebformEntityView.php
------ --------------------------------------------------------------------------------------------------------------------------------
174 Deprecated in PHP 8.4: Parameter #2 $webform_submission (Drupal\webform\WebformSubmissionInterface) is implicitly nullable via default value null.
------ --------------------------------------------------------------------------------------------------------------------------------

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

jsimonet created an issue. See original summary.

jsimonet changed the visibility of the branch 3570124-php-8.4-implicit to hidden.

pcambra’s picture

Category: Bug report » Task
Status: Active » Fixed

Thanks

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.

Status: Fixed » Closed (fixed)

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