@@ -112,7 +112,7 @@ public function getCacheTTL(): float|int
112112 return Config::get ('repository.cache.minutes ' , 30 ) * 60 ;
113113 }
114114
115- public function all ($ columns = ['* ' ]): Collection | array
115+ public function all ($ columns = ['* ' ]): mixed
116116 {
117117 if (!$ this ->allowedCache ('all ' ) || $ this ->isSkippedCache ())
118118 return parent ::all ($ columns );
@@ -147,7 +147,7 @@ public function paginate($limit = null, $columns = ['*'], $method = 'paginate'):
147147 return $ value ;
148148 }
149149
150- public function find (int $ id , $ columns = ['* ' ]): Model | Builder
150+ public function find (int $ id , $ columns = ['* ' ]): mixed
151151 {
152152 if (!$ this ->allowedCache ('find ' ) || $ this ->isSkippedCache ()) {
153153 return parent ::find ($ id , $ columns );
@@ -165,7 +165,7 @@ public function find(int $id, $columns = ['*']): Model|Builder
165165 return $ value ;
166166 }
167167
168- public function findByField (string $ field , $ value = null , $ columns = ['* ' ]): Collection | array
168+ public function findByField (string $ field , $ value = null , $ columns = ['* ' ]): mixed
169169 {
170170 if (!$ this ->allowedCache ('findByField ' ) || $ this ->isSkippedCache ()) {
171171 return parent ::findByField ($ field , $ columns );
@@ -183,7 +183,7 @@ public function findByField(string $field, $value = null, $columns = ['*']): Col
183183 return $ value ;
184184 }
185185
186- public function findWhere (array $ where , $ columns = ['* ' ]): Collection | array
186+ public function findWhere (array $ where , $ columns = ['* ' ]): mixed
187187 {
188188 if (!$ this ->allowedCache ('findWhere ' ) || $ this ->isSkippedCache ()) {
189189 return parent ::findWhere ($ where , $ columns );
@@ -201,7 +201,7 @@ public function findWhere(array $where, $columns = ['*']): Collection|array
201201 return $ value ;
202202 }
203203
204- public function getByCriteria (CriteriaInterface $ criteria )
204+ public function getByCriteria (CriteriaInterface $ criteria ): mixed
205205 {
206206 if (!$ this ->allowedCache ('getByCriteria ' ) || $ this ->isSkippedCache ()) {
207207 return parent ::getByCriteria ($ criteria );
0 commit comments