Skip to content

Commit

Permalink
fix: corrected "array to string conversion" error
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Aug 16, 2024
1 parent 3a4aa58 commit 0b062d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions phpmyfaq/src/phpMyFAQ/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>%s',
'An error occurred: %s at line %d at %s',
$exception->getMessage(),
$exception->getLine(),
$exception->getFile(),
implode('<br>', $exception->getTrace())
$exception->getFile()
),
Response::HTTP_BAD_REQUEST
);
Expand Down

0 comments on commit 0b062d3

Please sign in to comment.