Describe your bug or feature request.
When using PHP 8.4 (using Drupal 10.6.x and drupal/commerce 2.40.0), noticing the following PHP deprecation error:
Drupal\commerce\InlineFormManager::createInstance(): Implicitly marking parameter $entity as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/commerce/src/InlineFormManager.php on line 46
Issue fork commerce-3593279
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
Comment #2
andreastkdf commentedComment #4
andreastkdf commentedComment #6
andreastkdf commentedComment #7
andreastkdf commentedComment #8
jsacksick commented8.x-2.x is no longer actively maintained, and this was fixed in 3.x already.
Comment #9
andreastkdf commentedThanks, jsacksick, I've seen it fixed on 3.x, but needed to fix it on 2.x as we will use it until we upgrade our sites to Drupal 11 when we will finally move to commerce 3.x.
Small deprecation fixes can't hurt, figured out that I can add it here for people still using 2.x :)
Comment #10
jsacksick commented