PHP 8.4 support Implicitly marking parameter $taxonomy_term as nullable is deprecated

Created on 28 February 2025, about 1 month ago

drush cr

Deprecated: Drupal\tft\Form\ReorderFolderForm::buildForm(): Implicitly marking parameter $taxonomy_term as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/myapp/modules/contrib/tft/src/Form/ReorderFolderForm.php on line 93

Drupal version : 10.4.2
DB driver : pgsql
DB port : 5432
PHP version : 8.4.4
Drush version : 13.3.3.0

  public function buildForm(array $form, FormStateInterface $form_state, TermInterface $taxonomy_term = NULL) {
🐛 Bug report
Status

Active

Version

3.2

Component

Code

Created by

🇺🇸United States jakegibs617

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jakegibs617
  • 🇬🇧United Kingdom aaron.ferris

    Looks like its already fixed in the 3.2.x branch.

    public function buildForm(array $form, FormStateInterface $form_state, ?TermInterface $taxonomy_term = NULL) {

  • 🇺🇸United States jakegibs617

    hmm, I tried now switching to 3.2.x and after composer update and running drush cr I am getting this:

    Deprecated: Drupal\tft\Form\ReorderFolderForm::buildForm(): Implicitly marking parameter $taxonomy_term as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/my_app/modules/contrib/tft/src/Form/ReorderFolderForm.php on line 93

Production build 0.71.5 2024