Problem/Motivation
PHP 8.4 has been released, and this module 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 src/Form/HmOverviewTerms.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------
31 Deprecated in PHP 8.4: Parameter #3 $taxonomy_vocabulary (Drupal\taxonomy\VocabularyInterface) is implicitly nullable via default value null.
------ -----------------------------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------------
Line src/Plugin/HmDisplayPlugin/HmDisplayJstree.php
------ --------------------------------------------------------------------------------------------------------------------------------------
26 Deprecated in PHP 8.4: Parameter #4 $form_state (Drupal\Core\Form\FormStateInterface) is implicitly nullable via default value null.
------ --------------------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------------
Line src/Plugin/HmDisplayPluginInterface.php
------ --------------------------------------------------------------------------------------------------------------------------------------
16 Deprecated in PHP 8.4: Parameter #4 $form_state (Drupal\Core\Form\FormStateInterface) is implicitly nullable via default value null.
------ --------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3567185-php-8.4-deprecation.patch | 2.37 KB | benjy44 |
Comments
Comment #2
benjy44Patch to fix warning on version 3.4.1
Comment #3
mkalkbrennerComment #5
mingsongThanks.