From bbb90fcc3aa7b26622f5b9a45190f777dc7019d6 Mon Sep 17 00:00:00 2001 From: Rudie Dirkx Date: Mon, 18 Nov 2024 22:00:58 +0100 Subject: [PATCH] Add Collection/Generator generic types to public query builder methods --- src/Illuminate/Database/Connection.php | 2 +- src/Illuminate/Database/Query/Builder.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index 17056a9e4de0..3c791acbceb4 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -454,7 +454,7 @@ public function selectResultSets($query, $bindings = [], $useReadPdo = true) * @param string $query * @param array $bindings * @param bool $useReadPdo - * @return \Generator + * @return \Generator */ public function cursor($query, $bindings = [], $useReadPdo = true) { diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 64956bb2324f..985f62841597 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -3109,7 +3109,7 @@ public function soleValue($column) * Execute the query as a "select" statement. * * @param array|string $columns - * @return \Illuminate\Support\Collection + * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { @@ -3339,7 +3339,7 @@ protected function withoutSelectAliases(array $columns) /** * Get a lazy collection for the given query. * - * @return \Illuminate\Support\LazyCollection + * @return \Illuminate\Support\LazyCollection */ public function cursor() {