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.
Example usage:
$row = $db->fetchOne($sql);
if ($row === false) {
// handle failure
}
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 returnsfalseon failure. This causes problems with static analysis tools when we then attempt to compare the result tofalse.Aura.Sql/src/AbstractExtendedPdo.php
Line 407 in 2754f95
Example usage: