Skip to content
Permalink
Browse files

Fix typehint.

  • Loading branch information...
dereuromark committed May 18, 2017
1 parent 11cfe3c commit 62d1ccfb73142f04acbab9b1d520068134cd9ffc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Datasource/QueryTrait.php
@@ -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()
{
@@ -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()
{

0 comments on commit 62d1ccf

Please sign in to comment.
You can’t perform that action at this time.