Don't drop PHP5 support yet.
Scalar Type Hints and Return Type Declarations were introduced in PHP7.
This commit is contained in:
parent
0f0e23445a
commit
586c72fbe5
@ -580,7 +580,7 @@ function format_event_diaspora($ev) {
|
||||
* @param string $html The HTML code to convert
|
||||
* @return string Markdown representation of the given HTML text, empty on error
|
||||
*/
|
||||
function html2markdown(String $html) : String {
|
||||
function html2markdown($html) {
|
||||
$markdown = '';
|
||||
$converter = new HtmlConverter();
|
||||
|
||||
|
Reference in New Issue
Block a user