Skip to content

Add mandatory exit status #12730

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
Dec 9, 2019
Merged

Add mandatory exit status #12730

merged 1 commit into from
Dec 9, 2019

Conversation

slootjes
Copy link
Contributor

Since Symfony 5 it is required to return an integer from a command but this is not yet reflected in the documentation. I've modified the execute() functions and added a note with the new requirement which links to an explanation of exit statuses.

@maxhelias
Copy link
Contributor

duplicate of #12703

@slootjes
Copy link
Contributor Author

@maxhelias I see, you're right! This PR however also adds the explanation of what the return code actually does.

Modified all execute() functions and added a note with the new requirement which links to an explanation of exit statuses.
@javiereguiluz javiereguiluz changed the base branch from 5.0 to 4.4 December 9, 2019 14:33
@javiereguiluz
Copy link
Member

Robert, we merged both the original pull request and your pull request. We merged in 4.4 to warn about the deprecation and later in 5.0 we mentioned that retruning the integer is now mandatory. Thanks!

javiereguiluz added a commit that referenced this pull request Dec 9, 2019
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead (closes #12730).

Discussion
----------

Add mandatory exit status

Since Symfony 5 it is required to return an integer from a command but this is not yet reflected in the documentation. I've modified the execute() functions and added a note with the new requirement which links to an explanation of exit statuses.

Commits
-------

49f341f Add mandatory exit status
@javiereguiluz javiereguiluz merged commit 49f341f into symfony:4.4 Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants