From ee32994b0e4c129b851bca08f922ec5c6b3e0628 Mon Sep 17 00:00:00 2001 From: AIZAWA Hina Date: Fri, 14 Mar 2025 20:21:19 +0900 Subject: [PATCH] correct docblock return type for DataReader::read() method 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`. --- framework/db/DataReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/DataReader.php b/framework/db/DataReader.php index c705023f15e..3d2973d8621 100644 --- a/framework/db/DataReader.php +++ b/framework/db/DataReader.php @@ -105,7 +105,7 @@ public function setFetchMode($mode) /** * Advances the reader to the next row in a result set. - * @return array the current row, false if no more row available + * @return array|false the current row, false if no more row available */ public function read() {