Skip to content

Commit

Permalink
Fix typehint.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 18, 2017
1 parent 11cfe3c commit 62d1ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Datasource/QueryTrait.php
Expand Up @@ -393,7 +393,7 @@ public function formatResults(callable $formatter = null, $mode = 0)
* $singleUser = $query->select(['id', 'username'])->first();
* ```
*
* @return \Cake\Datasource\EntityInterface|null The first result from the ResultSet.
* @return \Cake\Datasource\EntityInterface|array|null The first result from the ResultSet.
*/
public function first()
{
Expand All @@ -408,7 +408,7 @@ public function first()
* Get the first result from the executing query or raise an exception.
*
* @throws \Cake\Datasource\Exception\RecordNotFoundException When there is no first record.
* @return \Cake\Datasource\EntityInterface The first result from the ResultSet.
* @return \Cake\Datasource\EntityInterface|array The first result from the ResultSet.
*/
public function firstOrFail()
{
Expand Down

0 comments on commit 62d1ccf

Please sign in to comment.