View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035217 | mantisbt | markdown | public | 2024-12-30 06:41 | 2025-01-11 09:54 |
Reporter | dregad | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | confirmed | Resolution | open | ||
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. |
|