Skip to content

#505: fix several typos in the templating documentation book chapter #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2011

Conversation

skeud
Copy link
Contributor

@skeud skeud commented Jul 4, 2011

Fix for opened ticket #505 on Symfony2 documentation "templating" book chapter

@weaverryan weaverryan merged commit da2497d into symfony:master Jul 5, 2011
@weaverryan
Copy link
Member

Great, thanks!

javiereguiluz added a commit that referenced this pull request Jul 24, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants