Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9523035

Browse filesBrowse 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
Copy full SHA for 9523035

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Process/Process.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Process.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.