8000 minor #33705 Fix return type of Process::restart() (derrabus) · symfony/symfony@9523035 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 9523035

Browse files
committed
minor #33705 Fix return type of Process::restart() (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- Fix return type of Process::restart() | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A `Process::restart()` is annotated with `@return $this`, but it actually returns a clone of the current object. So `@return static` would be more appropriate. Commits ------- 7d7380d Fix return type of Process::restart().
2 parents 04fe347 + 7d7380d commit 9523035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function start(callable $callback = null/*, array $env = [*/)
363363
* @param callable|null $callback A PHP callback to run whenever there is some
364364
* output available on STDOUT or STDERR
365365
*
366-
* @return $this
366+
* @return static
367367
*
368368
* @throws RuntimeException When process can't be launched
369369
* @throws RuntimeException When process is already running

0 commit comments

Comments
 (0)
0