Commit 8e004142 authored by Matthieu Napoli's avatar Matthieu Napoli Committed by GitHub

Improve the phpdoc in Connection

Improve return type's phpdoc because it wasn't clear from the phpdoc or the online documentation what would happen if no row was found.
parent 0348953f
......@@ -502,7 +502,7 @@ class Connection implements DriverConnection
* @param array $params The query parameters.
* @param array $types The query parameter types.
*
* @return array
* @return array|bool False is returned if no rows are found.
*/
public function fetchAssoc($statement, array $params = array(), array $types = array())
{
......@@ -517,7 +517,7 @@ class Connection implements DriverConnection
* @param array $params The prepared statement params.
* @param array $types The query parameter types.
*
* @return array
* @return array|bool False is returned if no rows are found.
*/
public function fetchArray($statement, array $params = array(), array $types = array())
{
......@@ -533,7 +533,7 @@ class Connection implements DriverConnection
* @param integer $column The 0-indexed column number to retrieve.
* @param array $types The query parameter types.
*
* @return mixed
* @return mixed|bool False is returned if no rows are found.
*/
public function fetchColumn($statement, array $params = array(), $column = 0, array $types = array())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment