From 0b062d37a614026893267e84242a0cfb675bc966 Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Fri, 16 Aug 2024 21:18:30 +0200 Subject: [PATCH] fix: corrected "array to string conversion" error --- phpmyfaq/src/phpMyFAQ/Application.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpmyfaq/src/phpMyFAQ/Application.php b/phpmyfaq/src/phpMyFAQ/Application.php index 9e714d70d1..afaad05b2c 100644 --- a/phpmyfaq/src/phpMyFAQ/Application.php +++ b/phpmyfaq/src/phpMyFAQ/Application.php @@ -115,11 +115,10 @@ private function handleRequest(RouteCollection $routeCollection): void } catch (BadRequestException $exception) { $response = new Response( sprintf( - 'An error occurred: %s at line %d at %s
%s', + 'An error occurred: %s at line %d at %s', $exception->getMessage(), $exception->getLine(), - $exception->getFile(), - implode('
', $exception->getTrace()) + $exception->getFile() ), Response::HTTP_BAD_REQUEST );