Skip to content

Commit e567930

Browse files
nguyenkandrew-demb
andauthored
Fix exception message
Co-authored-by: Andrii Dembitskyi <[email protected]>
1 parent b8b6085 commit e567930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/GraphQLiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handleRequest(Request $request): Response
7979
throw new \RuntimeException('Invalid JSON received in POST body: '.json_last_error_msg());
8080
}
8181
if (!is_array($parsedBody)){
82-
throw new \RuntimeException('Expecting associative array from request, got ' . gettype($content));
82+
throw new \RuntimeException('Expecting associative array from request, got ' . gettype($parsedBody));
8383
}
8484
$psr7Request = $psr7Request->withParsedBody($parsedBody);
8585
}

0 commit comments

Comments
 (0)