Skip to content
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

Added missing return statement to AbstractCommand. #566

Merged
merged 1 commit into from
Feb 3, 2013

Conversation

BenMorel
Copy link
Contributor

@BenMorel BenMorel commented Feb 3, 2013

The AbstractCommand::execute() and executeSchemaCommand() method should return an integer or null.

Although in PHP, omitting the return statement is equivalent to returning null, it is recommended to put an explicit return to clearly differentiate it from return void.

I've added return 0; here, keeping the existent behavior.

@doctrinebot
Copy link

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2273

guilhermeblanco added a commit that referenced this pull request Feb 3, 2013
Added missing return statement to AbstractCommand.
@guilhermeblanco guilhermeblanco merged commit d3cbdfc into doctrine:master Feb 3, 2013
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.

3 participants