@@ -558,8 +558,6 @@ public function isOutputDisabled(): bool
558558 /**
559559 * Returns the current output of the process (STDOUT).
560560 *
561- * @return string The process output
562- *
563561 * @throws LogicException in case the output has been disabled
564562 * @throws LogicException In case the process is not started
565563 */
@@ -580,8 +578,6 @@ public function getOutput(): string
580578 * In comparison with the getOutput method which always return the whole
581579 * output, this one returns the new output since the last call.
582580 *
583- * @return string The process output since the last call
584- *
585581 * @throws LogicException in case the output has been disabled
586582 * @throws LogicException In case the process is not started
587583 */
@@ -671,8 +667,6 @@ public function clearOutput(): static
671667 /**
672668 * Returns the current error output of the process (STDERR).
673669 *
674- * @return string The process error output
675- *
676670 * @throws LogicException in case the output has been disabled
677671 * @throws LogicException In case the process is not started
678672 */
@@ -694,8 +688,6 @@ public function getErrorOutput(): string
694688 * whole error output, this one returns the new error output since the last
695689 * call.
696690 *
697- * @return string The process error output since the last call
698- *
699691 * @throws LogicException in case the output has been disabled
700692 * @throws LogicException In case the process is not started
701693 */
@@ -761,8 +753,6 @@ public function getExitCodeText(): ?string
761753
762754 /**
763755 * Checks if the process ended successfully.
764- *
765- * @return bool true if the process ended successfully, false otherwise
766756 */
767757 public function isSuccessful (): bool
768758 {
@@ -832,8 +822,6 @@ public function getStopSignal(): int
832822
833823 /**
834824 * Checks if the process is currently running.
835- *
836- * @return bool true if the process is currently running, false otherwise
837825 */
838826 public function isRunning (): bool
839827 {
@@ -848,8 +836,6 @@ public function isRunning(): bool
848836
849837 /**
850838 * Checks if the process has been started with no regard to the current state.
851- *
852- * @return bool true if status is ready, false otherwise
853839 */
854840 public function isStarted (): bool
855841 {
@@ -858,8 +844,6 @@ public function isStarted(): bool
858844
859845 /**
860846 * Checks if the process is terminated.
861- *
862- * @return bool true if process is terminated, false otherwise
863847 */
864848 public function isTerminated (): bool
865849 {
@@ -872,8 +856,6 @@ public function isTerminated(): bool
872856 * Gets the process status.
873857 *
874858 * The status is one of: ready, started, terminated.
875- *
876- * @return string The current process status
877859 */
878860 public function getStatus (): string
879861 {
@@ -949,8 +931,6 @@ public function addErrorOutput(string $line)
949931
950932 /**
951933 * Gets the last output time in seconds.
952- *
953- * @return float|null The last output time in seconds or null if it isn't started
954934 */
955935 public function getLastOutputTime (): ?float
956936 {
@@ -959,28 +939,22 @@ public function getLastOutputTime(): ?float
959939
960940 /**
961941 * Gets the command line to be executed.
962- *
963- * @return string The command to execute
964942 */
965943 public function getCommandLine (): string
966944 {
967945 return \is_array ($ this ->commandline ) ? implode (' ' , array_map ([$ this , 'escapeArgument ' ], $ this ->commandline )) : $ this ->commandline ;
968946 }
969947
970948 /**
971- * Gets the process timeout (max. runtime).
972- *
973- * @return float|null The timeout in seconds or null if it's disabled
949+ * Gets the process timeout in seconds (max. runtime).
974950 */
975951 public function getTimeout (): ?float
976952 {
977953 return $ this ->timeout ;
978954 }
979955
980956 /**
981- * Gets the process idle timeout (max. time since last output).
982- *
983- * @return float|null The timeout in seconds or null if it's disabled
957+ * Gets the process idle timeout in seconds (max. time since last output).
984958 */
985959 public function getIdleTimeout (): ?float
986960 {
@@ -1048,8 +1022,6 @@ public function setTty(bool $tty): static
10481022
10491023 /**
10501024 * Checks if the TTY mode is enabled.
1051- *
1052- * @return bool true if the TTY mode is enabled, false otherwise
10531025 */
10541026 public function isTty (): bool
10551027 {
@@ -1078,8 +1050,6 @@ public function isPty(): bool
10781050
10791051 /**
10801052 * Gets the working directory.
1081- *
1082- * @return string|null The current working directory or null on failure
10831053 */
10841054 public function getWorkingDirectory (): ?string
10851055 {
@@ -1106,8 +1076,6 @@ public function setWorkingDirectory(string $cwd): static
11061076
11071077 /**
11081078 * Gets the environment variables.
1109- *
1110- * @return array The current environment variables
11111079 */
11121080 public function getEnv (): array
11131081 {
@@ -1144,7 +1112,7 @@ public function setEnv(array $env): static
11441112 /**
11451113 * Gets the Process input.
11461114 *
1147- * @return resource|string|\Iterator|null The Process input
1115+ * @return resource|string|\Iterator|null
11481116 */
11491117 public function getInput ()
11501118 {
@@ -1294,8 +1262,6 @@ private function getDescriptors(): array
12941262 * the user callback (if present) with the received output.
12951263 *
12961264 * @param callable|null $callback The user defined PHP callback
1297- *
1298- * @return \Closure A PHP closure
12991265 */
13001266 protected function buildCallback (callable $ callback = null ): \Closure
13011267 {
@@ -1476,8 +1442,6 @@ private function resetProcessData()
14761442 * @param int $signal A valid POSIX signal (see https://php.net/pcntl.constants)
14771443 * @param bool $throwException Whether to throw exception in case signal failed
14781444 *
1479- * @return bool True if the signal was sent successfully, false otherwise
1480- *
14811445 * @throws LogicException In case the process is not running
14821446 * @throws RuntimeException In case --enable-sigchild is activated and the process can't be killed
14831447 * @throws RuntimeException In case of failure
0 commit comments