Dependency Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0035217 | mantisbt | markdown | public | 2024-12-30 06:41 | 2026-03-12 15:07 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
| Summary | 0035217: PHP 8.4 deprecation warnings in Parsedown 1.7.4 | ||||
| Description | Mantis issues the following warnings: DEPRECATED: 'Parsedown::blockSetextHeader(): Implicitly marking parameter $Block as nullable is deprecated, the explicit nullable type must be used instead' in './mantis/vendor/erusev/parsedown/Parsedown.php' line 715 DEPRECATED: 'Parsedown::blockTable(): Implicitly marking parameter $Block as nullable is deprecated, the explicit nullable type must be used instead' in './mantis/vendor/erusev/parsedown/Parsedown.php' line 853 | ||||
| Additional Information | This has already been reported upstream: https://github.com/erusev/parsedown/pull/868 The PR has been merged several months ago, but to-date no new version of Parsedown has been released. Requested that in https://github.com/erusev/parsedown/issues/897 | ||||
| Tags | PHP 8.4 | ||||
|
So the next version of MantisBT 2.28 will be with Parsedown 1.8? Looks like MantisCoreFormatting plugin should be slightly updated: |
|
1.8, 2.0 or whatever they release next... Hoping they do it soon. |
|
|
Another problem with Parsedown 1.8 is probably a bug in Parsedown... After figuring out how to run PHPUnit tests (and fixing them for the new version), I noticed that two PHPUnit tests failed:
Further investigation revealed that Parsedown commit eb55e42 removed the use of the We need to decide whether to rewrite the MantisBT plugin or fix Parsedown. |
|
|
Thanks for testing.
For starters I suggest reporting this upstream, and see if they consider it a bug or not. As a side note, please note that this thread is about PHP 8.4 compatibility, not Parsedown 1.8 tests - it would be better to move this discussion to a new issue. |
|
|
I created 0035227, all notes here can be deleted. P.S. I just now realised that MantisBT doesn't have a button to move notes to another ticket... |
|
No it does not. That's not a very common use case. What you can do is Clone the issue, then you have the option to copy the bugnotes and set a relationship to the original issue. |
|
|
Switching to community-maintained Parsedown fork https://github.com/parsedown/parsedown which recently released version 1.7.5 including PHP 8.4 compatibility fix. |
|
|
MantisBT: master da69045f 2025-12-29 18:43 Committer: community Details Diff |
Parsedown upgrade to 1.7.5 and switch to fork The original erusev/parsedown repository has not seen any release since 2019, and the owner does not seem too eager to continue maintaining it. We are switching to a community-maintained fork [1] which has a PHP 8.4 compatible release. Fixes 0035217, PR https://github.com/mantisbt/mantisbt/pull/2164 [1]: https://github.com/parsedown/parsedown |
Affected Issues 0035217 |
|
| mod - composer.json | Diff File | ||
| mod - composer.lock | Diff File | ||
related to
child of
duplicate of