From 6d20de0a88112cb9a812580011073ae7d36d5e5b Mon Sep 17 00:00:00 2001 From: RealJTG Date: Wed, 25 Nov 2020 17:59:45 +0200 Subject: [PATCH] Fix #1266 profiler explain error in SQLServerPlatform, OtherPlatform --- Controller/ProfilerController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Controller/ProfilerController.php b/Controller/ProfilerController.php index 6691db2b3..d57d05b80 100644 --- a/Controller/ProfilerController.php +++ b/Controller/ProfilerController.php @@ -97,9 +97,11 @@ private function explainSQLitePlatform(Connection $connection, array $query): ar } /** + * @param mixed[] $query + * * @return mixed[] */ - private function explainSQLServerPlatform(Connection $connection, string $query): array + private function explainSQLServerPlatform(Connection $connection, array $query): array { if (stripos($query['sql'], 'SELECT') === 0) { $sql = 'SET STATISTICS PROFILE ON; ' . $query['sql'] . '; SET STATISTICS PROFILE OFF;'; @@ -120,9 +122,11 @@ private function explainSQLServerPlatform(Connection $connection, string $query) } /** + * @param mixed[] $query + * * @return mixed[] */ - private function explainOtherPlatform(Connection $connection, string $query): array + private function explainOtherPlatform(Connection $connection, array $query): array { $params = $query['params'];