Problem/Motivation
Module is not compatible with php 8.4
Steps to reproduce
Throws warnings on drush cr
PHP Deprecated: Drupal\tmgmt\Entity\Job::isAuthor(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/docroot/modules/contrib/tmgmt/src/Entity/Job.php on line 584
Deprecated: Drupal\tmgmt\Entity\Job::isAuthor(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/docroot/modules/contrib/tmgmt/src/Entity/Job.php on line 584
PHP Deprecated: Drupal\tmgmt\JobInterface::isAuthor(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/docroot/modules/contrib/tmgmt/src/JobInterface.php on line 394
Deprecated: Drupal\tmgmt\JobInterface::isAuthor(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/docroot/modules/contrib/tmgmt/src/JobInterface.php on line 394
Proposed resolution
Fix php code and make it compatible
Remaining tasks
Merge PR and make the new release.
Issue fork tmgmt-3534923
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 #4
lussolucaI've added the nullable type hint everywhere is needed
Comment #5
lisotton commentedI applied the patch from the MR and it is working fine.
I'm marking it as RTBC.
Comment #6
steffenrI also get a similar message on the edit provider page, in case of having the ability to allow file translations for the translator.
Comment #8
berdirAll the actual fixes already happened elsewhere, but was a clean automated rebase and updates some docs the other issue didn't, so merging this as well. Merging.