Skip to content

Commit

Permalink
Added type hint for arrays as the second parameter allows both, a str…
Browse files Browse the repository at this point in the history
…ing or an array.
  • Loading branch information
thirsch authored and thePanz committed Jan 10, 2023
1 parent 287270b commit 6ff2997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ public function findByDql($dql, $params = array(), $hydrationMode = null)
* Find records basing on a field.
*
* @param string $column field for the WHERE clause
* @param string $value prepared statement parameter
* @param string|array $value prepared statement parameter
* @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD
* @return Doctrine_Collection|array
*/
Expand All @@ -1719,7 +1719,7 @@ public function findBy($fieldName, $value, $hydrationMode = null)
* Finds the first record that satisfy the clause.
*
* @param string $column field for the WHERE clause
* @param string $value prepared statement parameter
* @param string|array $value prepared statement parameter
* @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD
* @return Doctrine_Record
*/
Expand Down

0 comments on commit 6ff2997

Please sign in to comment.