Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-filesystem-ftpext.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
*
* @param array $opt
*/
public function __construct( $opt = '' ) {
public function __construct( $opt = array() ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to add docblock for the param

$this->method = 'ftpext';
$this->errors = new WP_Error();

Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-filesystem-ssh2.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
*
* @param array $opt
*/
public function __construct( $opt = '' ) {
public function __construct( $opt = array() ) {
$this->method = 'ssh2';
$this->errors = new WP_Error();

Expand Down
Loading