Skip to content

Commit 6ff2997

Browse files
thirschthePanz
authored andcommitted
Added type hint for arrays as the second parameter allows both, a string or an array.
1 parent 287270b commit 6ff2997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Doctrine/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ public function findByDql($dql, $params = array(), $hydrationMode = null)
17041704
* Find records basing on a field.
17051705
*
17061706
* @param string $column field for the WHERE clause
1707-
* @param string $value prepared statement parameter
1707+
* @param string|array $value prepared statement parameter
17081708
* @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD
17091709
* @return Doctrine_Collection|array
17101710
*/
@@ -1719,7 +1719,7 @@ public function findBy($fieldName, $value, $hydrationMode = null)
17191719
* Finds the first record that satisfy the clause.
17201720
*
17211721
* @param string $column field for the WHERE clause
1722-
* @param string $value prepared statement parameter
1722+
* @param string|array $value prepared statement parameter
17231723
* @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD
17241724
* @return Doctrine_Record
17251725
*/

0 commit comments

Comments
 (0)