Skip to content

Commit c722707

Browse files
committed
Filesystem: Update constructor parameter default value to an empty array
1 parent 9f8a3b1 commit c722707

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-admin/includes/class-wp-filesystem-ftpext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
2828
*
2929
* @param array $opt
3030
*/
31-
public function __construct( $opt = '' ) {
31+
public function __construct( $opt = array() ) {
3232
$this->method = 'ftpext';
3333
$this->errors = new WP_Error();
3434

src/wp-admin/includes/class-wp-filesystem-ssh2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
6060
*
6161
* @param array $opt
6262
*/
63-
public function __construct( $opt = '' ) {
63+
public function __construct( $opt = array() ) {
6464
$this->method = 'ssh2';
6565
$this->errors = new WP_Error();
6666

0 commit comments

Comments
 (0)