Problem/Motivation

PHP Deprecated: Drupal\forms_steps\Entity\FormsSteps::getSteps(): Implicitly marking parameter $step_ids as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/Entity/FormsSteps.php on line 352

PHP Deprecated: Drupal\forms_steps\Entity\FormsSteps::getProgressSteps(): Implicitly marking parameter $progress_step_ids as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/Entity/FormsSteps.php on line 365

PHP Deprecated: Drupal\forms_steps\Entity\FormsSteps::getFirstStep(): Implicitly marking parameter $steps as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/Entity/FormsSteps.php on line 405

PHP Deprecated: Drupal\forms_steps\Entity\FormsSteps::getLastStep(): Implicitly marking parameter $steps as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/Entity/FormsSteps.php on line 416

PHP Deprecated: Drupal\forms_steps\FormsStepsInterface::getSteps(): Implicitly marking parameter $step_ids as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/FormsStepsInterface.php on line 113

PHP Deprecated: Drupal\forms_steps\FormsStepsInterface::getProgressSteps(): Implicitly marking parameter $progress_step_ids as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/FormsStepsInterface.php on line 129

PHP Deprecated: Drupal\forms_steps\FormsStepsInterface::getLastStep(): Implicitly marking parameter $steps as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/FormsStepsInterface.php on line 140

PHP Deprecated: Drupal\forms_steps\FormsStepsInterface::getFirstStep(): Implicitly marking parameter $steps as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/forms_steps/src/FormsStepsInterface.php on line 151

Steps to reproduce

Upgrade PHP to 8.4

Proposed resolution

Remaining tasks

User interface changes

None.

API changes

No, only making what is allowed explicit.

Data model changes

None.

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

mlncn created an issue. See original summary.

abenbow’s picture

Status: Active » Reviewed & tested by the community

+1 Can confirm that the MR in #1 and #2 fixes the issue.

abenbow’s picture

Hey folks, the code for this patch appears to work properly and it is the correct approach to resolve this issue.

Is it possible to get this fix merged in and create a release soon?

I'm using form steps for a project that needs to see this introduced. I'd be happy to help out with cutting a release as a maintainer if you need some new hands on deck.

nicoloye’s picture

Hello folks!
I'll be checking this issue and prepare a new release this week.

  • mlncn committed 6059cc84 on 8.x-1.x
    Issue #3511889: Fix more deprecations in PHP 8.4: 'Implicitly marking...

  • mlncn committed 898cc8ca on 8.x-1.x
    Issue #3511889: Fix deprecations in PHP 8.4: 'Implicitly marking...
nicoloye’s picture

Status: Reviewed & tested by the community » Fixed

Merged! Thanks for the good work and sorry for the delay.

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.