Problem/Motivation

When running the site on PHP 8.4, the following deprecation warning is triggered:
PHP Deprecated: Drupal\blocktabs\Form\TabDeleteForm::buildForm(): Implicitly marking parameter $blocktabs as nullable is deprecated, the explicit nullable type must be used instead...

Proposed resolution

Update the buildForm method signature in src/Form/TabDeleteForm.php to explicitly declare the type as nullable (e.g., ?EntityInterface $blocktabs or ?BlockTabs $blocktabs).

Environment

PHP Version: 8.4
Drupal Version: 10.5.7
Module Version: 8.x-1.0

Issue fork blocktabs-3587487

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

joseft40 created an issue.

ishani patel made their first commit to this issue’s fork.

ishani patel’s picture

Hello,
I've created MR from the patch.
Thank you!