@@ -186,37 +186,33 @@ public function collect(Request $request, Response $response, Throwable|null $ex
186186 }
187187
188188 /** @return array<string, array<class-string, array{class: class-string, file: false|string, line: false|int}>> */
189- public function getEntities ()
189+ public function getEntities (): array
190190 {
191191 return $ this ->data ['entities ' ];
192192 }
193193
194194 /** @return array<string, array<string, list<string>>> */
195- public function getMappingErrors ()
195+ public function getMappingErrors (): array
196196 {
197197 return $ this ->data ['errors ' ];
198198 }
199199
200- /** @return int */
201- public function getCacheHitsCount ()
200+ public function getCacheHitsCount (): int
202201 {
203202 return $ this ->data ['caches ' ]['counts ' ]['hits ' ];
204203 }
205204
206- /** @return int */
207- public function getCachePutsCount ()
205+ public function getCachePutsCount (): int
208206 {
209207 return $ this ->data ['caches ' ]['counts ' ]['puts ' ];
210208 }
211209
212- /** @return int */
213- public function getCacheMissesCount ()
210+ public function getCacheMissesCount (): int
214211 {
215212 return $ this ->data ['caches ' ]['counts ' ]['misses ' ];
216213 }
217214
218- /** @return bool */
219- public function getCacheEnabled ()
215+ public function getCacheEnabled (): bool
220216 {
221217 return $ this ->data ['caches ' ]['enabled ' ];
222218 }
@@ -225,19 +221,18 @@ public function getCacheEnabled()
225221 * @return array<string, array<string, int>>
226222 * @phpstan-return array<"puts"|"hits"|"misses", array<string, int>>
227223 */
228- public function getCacheRegions ()
224+ public function getCacheRegions (): array
229225 {
230226 return $ this ->data ['caches ' ]['regions ' ];
231227 }
232228
233229 /** @return array<string, int> */
234- public function getCacheCounts ()
230+ public function getCacheCounts (): array
235231 {
236232 return $ this ->data ['caches ' ]['counts ' ];
237233 }
238234
239- /** @return int */
240- public function getInvalidEntityCount ()
235+ public function getInvalidEntityCount (): int
241236 {
242237 return $ this ->invalidEntityCount ??= array_sum (array_map ('count ' , $ this ->data ['errors ' ]));
243238 }
@@ -266,7 +261,7 @@ public function getManagedEntityCountByClass(): array
266261 * @return string[][]
267262 * @phpstan-return array<string, list<QueryType&array{count: int, index: int, executionPercent?: float}>>
268263 */
269- public function getGroupedQueries ()
264+ public function getGroupedQueries (): array
270265 {
271266 if ($ this ->groupedQueries !== null ) {
272267 return $ this ->groupedQueries ;
@@ -319,8 +314,7 @@ private function executionTimePercentage(float $executionTimeMS, float $totalExe
319314 return $ executionTimeMS / $ totalExecutionTimeMS * 100 ;
320315 }
321316
322- /** @return int */
323- public function getGroupedQueryCount ()
317+ public function getGroupedQueryCount (): int
324318 {
325319 $ count = 0 ;
326320 foreach ($ this ->getGroupedQueries () as $ connectionGroupedQueries ) {
0 commit comments