backdrop-contrib / coder_upgrade

Helps automate some/most of the work required to upgrade a module from Drupal to Backdrop 1.x
GNU General Public License v2.0
4 stars 7 forks source link

PHP 8.1: TypeError: set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, class PGPReader does not have a method "exception_handler" in set_exception_handler() #83

Closed argiepiano closed 1 year ago

argiepiano commented 1 year ago

When running coder upgrade with PHP 8.1, trying to convert a module, I get:

TypeError: set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, class PGPReader does not have a method "exception_handler" in set_exception_handler() (line 107 of /Users/XXX/Sites/localhost/XXX/modules/coder_upgrade/grammar_parser/parser.inc).

It runs find in 7.4

docwilmot commented 1 year ago

We did some 8.1 work few months ago, but I dont think we released. Pretty sure that was one of the errors that should have been fixed in latest dev. @bugfolder time to release you think?

bugfolder commented 1 year ago

Agreed

bugfolder commented 1 year ago

@argiepiano, can you confirm that new release 1.x-1.0.9 (released last week) fixes the problem you experienced?

argiepiano commented 1 year ago

Yes, the new release doesn't throw this error. Closing.