Skip to content

Commit 46a07fa

Browse files
authored
Fixes PHP 8.1 E_DEPRECATED in GitHub Template (#23)
If no longDescription, `null` is passed to `str_replace()`, which is deprecated now in PHP 8. Casting value to string to avoid the E_DEPRECATED.
1 parent de0f1d3 commit 46a07fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tpl/github.class.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<?= $info->shortDescription ?>
5757

58-
<?= str_replace("\n", " \n", $info->longDescription) ?>
58+
<?= str_replace("\n", " \n", (string)$info->longDescription) ?>
5959

6060
**Parameters**
6161

0 commit comments

Comments
 (0)