Skip to content

Commit

Permalink
Replace @return annotation by return type in final classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dFayet committed Jun 22, 2019
1 parent 8287745 commit 802a854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Process.php
Expand Up @@ -246,7 +246,7 @@ public function run(callable $callback = null, array $env = []): int
*
* @final
*/
public function mustRun(callable $callback = null, array $env = [])
public function mustRun(callable $callback = null, array $env = []): object
{
if (0 !== $this->run($callback, $env)) {
throw new ProcessFailedException($this);
Expand Down Expand Up @@ -367,7 +367,7 @@ public function start(callable $callback = null, array $env = [])
*
* @final
*/
public function restart(callable $callback = null, array $env = [])
public function restart(callable $callback = null, array $env = []): object
{
if ($this->isRunning()) {
throw new RuntimeException('Process is already running');
Expand Down

0 comments on commit 802a854

Please sign in to comment.