Make WordPress Core


Ignore:
Timestamp:
01/10/2015 06:12:25 AM (11 years ago)
Author:
wonderboymusic
Message:

Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value - anything that is returned is discarded.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r30978 r31125  
    4949        if ( ! extension_loaded('ssh2') ) {
    5050            $this->errors->add('no_ssh2_ext', __('The ssh2 PHP extension is not available'));
    51             return false;
     51            return;
    5252        }
    5353        if ( !function_exists('stream_get_contents') ) {
    5454            $this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function <code>stream_get_contents()</code>'));
    55             return false;
     55            return;
    5656        }
    5757
Note: See TracChangeset for help on using the changeset viewer.