Skip to content

Type hint incomplete #194

@afilina

Description

@afilina

The type hint suggest that it can only be an array, but if we dig into the method whose result we return, we see that it returns false on failure. This causes problems with static analysis tools when we then attempt to compare the result to false.

* @return array

Example usage:

$row = $db->fetchOne($sql);

if ($row === false) {
  // handle failure
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions