Skip to content

Commit 2c14fda

Browse files
committed
PHP 7.4 Compatibility: Update implode() calls.
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent ff5082f commit 2c14fda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php/EE/DocParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function get_longdesc() {
7272

7373
$lines[] = $line;
7474
}
75-
$longdesc = trim( implode( $lines, "\n" ) );
75+
$longdesc = trim( implode( "\n", $lines ) );
7676

7777
return $longdesc;
7878
}

php/commands/help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static function indent( $whitespace, $text ) {
104104
foreach ( $lines as &$line ) {
105105
$line = $whitespace . $line;
106106
}
107-
return implode( $lines, "\n" );
107+
return implode( "\n", $lines );
108108
}
109109

110110
private static function pass_through_pager( $out ) {

0 commit comments

Comments
 (0)