There was another ticket logged regarding this error message but perhaps this one was missed or re-introduced.

PHP Deprecated: Drupal\ai_image_alt_text\Controller\GenerateAltText::generate(): Implicitly marking parameter $file as nullable is deprecated, the explicit nullable type must be used instead in /app/web/modules/contrib/ai_image_alt_text/src/Controller/GenerateAltText.php on line

Cheers Dan

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

danharper created an issue. See original summary.

anjaliprasannan’s picture

I couldn't reproduce the issue. Could you please update the steps to reproduce?

danharper’s picture

I can't quite remember where I picked it up, are you using php 8.4?

svendecabooter’s picture

Title: nullable is deprecated » PHP8.4: nullable is deprecated
svendecabooter’s picture

Status: Active » Reviewed & tested by the community

This fixes the PHP warning shown when using PHP 8.4 with this module.

svendecabooter’s picture

Version: 1.0.1 » 1.0.x-dev
marcus_johansson’s picture

Status: Reviewed & tested by the community » Fixed

Thank you, getting merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.