Skip to content

Commit c447d95

Browse files
authored
Correct docblock return type for DataReader::read() method (#20338)
The method's docblock incorrectly stated it always returned an array, while in practice it can also return `false`. This change updates the `@return` annotation to correctly specify `array|false`.
1 parent e38f62e commit c447d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/db/DataReader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function setFetchMode($mode)
105105

106106
/**
107107
* Advances the reader to the next row in a result set.
108-
* @return array the current row, false if no more row available
108+
* @return array|false the current row, false if no more row available
109109
*/
110110
public function read()
111111
{

0 commit comments

Comments
 (0)