Skip to content

Commit

Permalink
Merge pull request #5212 from szepeviktor/fix-ret-types
Browse files Browse the repository at this point in the history
Fix return types
  • Loading branch information
danielbachhuber committed May 6, 2019
2 parents 564bf7b + 57f8b13 commit 97528c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions php/WP_CLI/Process.php
Expand Up @@ -64,7 +64,7 @@ private function __construct() {}
/**
* Run the command.
*
* @return ProcessRun
* @return \WP_CLI\ProcessRun
*/
public function run() {
$start_time = microtime( true );
Expand Down Expand Up @@ -105,7 +105,7 @@ public function run() {
/**
* Run the command, but throw an Exception on error.
*
* @return ProcessRun
* @return \WP_CLI\ProcessRun
*/
public function run_check() {
$r = $this->run();
Expand All @@ -121,7 +121,7 @@ public function run_check() {
* Run the command, but throw an Exception on error.
* Same as `run_check()` above, but checks the correct stderr.
*
* @return ProcessRun
* @return \WP_CLI\ProcessRun
*/
public function run_check_stderr() {
$r = $this->run();
Expand Down
4 changes: 2 additions & 2 deletions php/class-wp-cli.php
Expand Up @@ -1024,7 +1024,7 @@ public static function error_to_string( $errors ) {
* @param string $command External process to launch.
* @param boolean $exit_on_error Whether to exit if the command returns an elevated return code.
* @param boolean $return_detailed Whether to return an exit status (default) or detailed execution results.
* @return int|ProcessRun The command exit status, or a ProcessRun object for full details.
* @return int|\WP_CLI\ProcessRun The command exit status, or a ProcessRun object for full details.
*/
public static function launch( $command, $exit_on_error = true, $return_detailed = false ) {
Utils\check_proc_available( 'launch' );
Expand Down Expand Up @@ -1066,7 +1066,7 @@ public static function launch( $command, $exit_on_error = true, $return_detailed
* @param bool $exit_on_error Whether to exit if the command returns an elevated return code.
* @param bool $return_detailed Whether to return an exit status (default) or detailed execution results.
* @param array $runtime_args Override one or more global args (path,url,user,allow-root)
* @return int|ProcessRun The command exit status, or a ProcessRun instance
* @return int|\WP_CLI\ProcessRun The command exit status, or a ProcessRun instance
*/
public static function launch_self( $command, $args = array(), $assoc_args = array(), $exit_on_error = true, $return_detailed = false, $runtime_args = array() ) {
$reused_runtime_args = array(
Expand Down

0 comments on commit 97528c1

Please sign in to comment.