Skip to content

Commit

Permalink
Update return phpDoc queryOne & queryScalar.
Browse files Browse the repository at this point in the history
  • Loading branch information
githubjeka committed Feb 11, 2016
1 parent 1ccf958 commit af9462b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/db/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function queryAll($fetchMode = null)
* This method is best used when only the first row of result is needed for a query.
* @param integer $fetchMode the result fetch mode. Please refer to [PHP manual](http://www.php.net/manual/en/function.PDOStatement-setFetchMode.php)
* for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used.
* @return array|boolean the first row (in terms of an array) of the query result. False is returned if the query
* @return array|false the first row (in terms of an array) of the query result. False is returned if the query
* results in nothing.
* @throws Exception execution failed
*/
Expand All @@ -379,7 +379,7 @@ public function queryOne($fetchMode = null)
/**
* Executes the SQL statement and returns the value of the first column in the first row of data.
* This method is best used when only a single value is needed for a query.
* @return string|null|boolean the value of the first column in the first row of the query result.
* @return string|null|false the value of the first column in the first row of the query result.
* False is returned if there is no value.
* @throws Exception execution failed
*/
Expand Down

0 comments on commit af9462b

Please sign in to comment.