Skip to content

Commit

Permalink
Update phpdoc on Table::findOneBy(...) to include false in @return
Browse files Browse the repository at this point in the history
change phpdoc on Table::findOneBy() to include 'false' 

If the fields specified do not match a row in the database, the underlying call on Doctrine_Query::fetchOne() will return false, so this method should as well.
  • Loading branch information
DavidGoodwin authored and thePanz committed Oct 25, 2024
1 parent 5c857c2 commit f23446e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ public function findBy($fieldName, $value, $hydrationMode = null)
* @param string $column field for the WHERE clause
* @param string|array $value prepared statement parameter
* @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD
* @return Doctrine_Record
* @return Doctrine_Record|false
*/
public function findOneBy($fieldName, $value, $hydrationMode = null)
{
Expand Down

0 comments on commit f23446e

Please sign in to comment.