Alpacka deprecation messages on PHP 8.4

Body:

Hello,

I’m experiencing deprecation warnings with MoreGallery in my MODX installation running on PHP 8.4. The warnings appear to be coming from the Alpacka dependency.

I have some PHP CLI scripts that include MODX object (use MODX\Revolution\modX;), and that is enough to raise this erorr message in every output of this script.

Error Message:

Deprecated: modmore\Alpacka\Alpacka::getBooleanOption(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/core/components/moregallery/vendor/modmore/alpacka/core/components/alpacka/src/Alpacka.php on line 541

Environment:

  • MODX Revolution: 3.1.2
  • PHP Version: 8.4
  • MoreGallery: 1.18.0-rc1

Request:
Could you please update the Alpacka package to remedy this issue?

And thank you for your excellent work on MoreGallery!

Moved your report to GitHub: Deprecation warning · Issue #8 · modmore/Alpacka · GitHub

Will take a look, should be an easy fix.

1 Like

Thanks, would be nice, although is not critical, of course :slight_smile: