Hello
By trying to install/use the 2.0.0-alpha1 version (for D10 compatibility), we're getting following issue:
Fatal error: Declaration of Drupal\webhooks\WebhooksService::encode($data, $format, array $context = []) must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode(mixed $data, string $format, array $context = []): string in /var/www/html/web/modules/contrib/webhooks/src/WebhooksService.php on line 331 PHP Fatal error: Declaration of Drupal\webhooks\WebhooksService::encode($data, $format, array $context = []) must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode(mixed $data, string $format, array $context = []): string in /var/www/html/web/modules/contrib/webhooks/src/WebhooksService.php on line 331
This is, because mentioned methods are not compliant as described into the PHP interface. This seems to be solved in dev release, so attaching patch here, if someone needs it.
Patch on the way...
Closed: outdated
2.0
Code