From 455eebefa7914a3b73cff82538b19d3209bd0c7c Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Thu, 2 May 2024 23:04:32 -0400 Subject: [PATCH] typehints --- src/Entries/EntryQueryBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entries/EntryQueryBuilder.php b/src/Entries/EntryQueryBuilder.php index 7319623e..0a37b5c3 100644 --- a/src/Entries/EntryQueryBuilder.php +++ b/src/Entries/EntryQueryBuilder.php @@ -184,7 +184,7 @@ public function whereIn($column, $values, $boolean = 'and') return parent::whereIn($column, $values, $boolean); } - private function ensureCollectionsAreQueriedForStatusQuery() + private function ensureCollectionsAreQueriedForStatusQuery(): void { $wheres = collect($this->builder->getQuery()->wheres); @@ -205,7 +205,7 @@ private function ensureCollectionsAreQueriedForStatusQuery() $this->whereIn('collection', app(static::class)->whereIn('id', $ids)->pluck('collection')->unique()->values()); } - private function getCollectionsForStatusQuery() + private function getCollectionsForStatusQuery(): \Illuminate\Support\Collection { // Since we have to add nested queries for each collection, we only want to add clauses for the // applicable collections. By this point, there should be where clauses on the collection column.