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

Fixed code formatting

Updating affected version(s), since 1.1.0 hasn't yet been released.

Assigning to [~davey] to clear unassigned issues.

Scheduling for next minor release.

stale issue, and no watchers.