Problem/Motivation

PHP 8.4 has deprecated implicit nullable types, causing deprecation warnings in the dx_toolkit module. These warnings need to be addressed to ensure compatibility with future PHP versions and to maintain clean error logs.

Steps to reproduce

Install and enable the dx_toolkit module
Use PHP 8.4
Clear Drupal cache (e.g., using `drush cr`)
Observe the following deprecation warning:
Drupal\dx_toolkit\Plugin\PluginManager::createInstances(): Implicitly marking parameter $plugin_ids as nullable is deprecated, the explicit nullable type must be used instead

Proposed resolution

Explicitly declare nullable parameters in PluginManager::createInstances()

Remaining tasks

Test the changes to ensure they resolve the deprecation warning
Verify that the module's functionality remains intact after the changes

User interface changes

None

API changes

None

Data model changes

None

Issue fork dx_toolkit-3564812

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

adityarawat_ln created an issue. See original summary.

adityarawat_ln’s picture

Assigned: adityarawat_ln » Unassigned
Status: Active » Needs review

I have created the merge request please review it once.

Thank you