You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #18596 [Console] Corrected return type of anonymous functions (mwansinck)
This PR was merged into the 6.2 branch.
Discussion
----------
[Console] Corrected return type of anonymous functions
Fixes wrong return type (void) for anonymous functions clearly returning a string value
When copying the current example from the docs it results in the following error;
```
Symfony\Component\ErrorHandler\Error\FatalError {#506
#message: "Compile Error: A void function must not return a value"
#code: 0
#file: "./src/Command/ExampleCommand.php"
#line: 58
-error: array:4 [
"type" => 64
"message" => "A void function must not return a value"
"file" => "../src/Command/Debug/OverrideUserCommand.php"
"line" => 58
]
}
```
Commits
-------
d2e78f1 Corrected return type of anonymous functions
0 commit comments