[DDC-2273] [GH-566] Added missing return statement to AbstractCommand. Created: 03/Feb/13 Updated: 05/Feb/13 Resolved: 05/Feb/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
This issue is created automatically through a Github pull request on behalf of BenMorel:
The `AbstractCommand::execute()` 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.
|Comment by Benjamin Eberlei [ 03/Feb/13 ]|
A related Github Pull-Request [GH-566] was closed
|Comment by Fabio B. Silva [ 05/Feb/13 ]|