ZF-1693: If result is different from docblock, and is boolean, consider it a status code
Description
If, for example we have:
/**
* My Function
*
* @return array
*/
function myFunction() {
if (something) {
return array();
}
return false;
}
Because we expected an array, but returned a boolean (it could also be true), the boolean should be taken to be the status of the request, false = failure, true = success. I think this is a common way to write code :)
- Davey
Comments
Posted by Davey Shafik (davey) on 2007-07-09T15:01:56.000+0000
Fixed code formatting
Posted by Darby Felton (darby) on 2007-07-19T16:14:51.000+0000
Updating affected version(s), since 1.1.0 hasn't yet been released.
Posted by Darby Felton (darby) on 2007-07-19T16:23:57.000+0000
Assigning to [~davey] to clear unassigned issues.
Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T12:00:08.000+0000
Scheduling for next minor release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-11-22T06:36:39.000+0000
stale issue, and no watchers.