You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the docu says: "If the execution succeeds, it returns a recordset. [...] if the execution fails, it returns false."
In the code I could not find a place which returns true. Is there any particular reason why it can return, as defined by phpdoc, bool and not only false?
Description
The return type of the ADOConnection::Execute method is defined as folloing:
ADOdb/adodb.inc.php
Line 1521 in 928936a
but the docu says: "If the execution succeeds, it returns a recordset. [...] if the execution fails, it returns false."
In the code I could not find a place which returns true. Is there any particular reason why it can return, as defined by phpdoc, bool and not only false?
Environment
Expected behavior
`* @return ADORecordSet|false
`### Additional context
the reason I ask is because I usually treat the result as follows:
Here, however, a code analysis by psalm rightly criticizes that it could also return true according to phpdoc.
The text was updated successfully, but these errors were encountered: