PHP 8.3 compatibility error due to bug in markdownify library

Created on 17 July 2025, 4 months ago

Problem/Motivation

I have been trying this module out along with the related modules. I had an issue with the markdown library and php version compatibility, specifically a bug that has a fix on the library that affects php 8.3:
https://github.com/Elephant418/Markdownify/pull/48

Steps to reproduce

Install module on site with php 8.3, set up push notifications and try to send. You get an error message
Duplicate declaration of static variable $indent in /vendor/pixel418/markdownify/src/Converter.php

Proposed resolution

Applying these changes to the library worked (manually)
https://github.com/Elephant418/Markdownify/pull/48/commits/7db946f0a9536...
Maybe the only solution is to patch the library using composer or custom library. Or is there an alternative more up to date library?

💬 Support request
Status

Active

Version

2.3

Component

Code

Created by

🇬🇧United Kingdom gsquirrel London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gsquirrel
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Yes, patching the third party library with composer is the only possible way to get this resolved.

    And helping to push maintainers of the third party library to actually provide a fixed version may be accelerating that process.

Production build 0.71.5 2024