Skip to content

Commit

Permalink
Fix class name access error for php7
Browse files Browse the repository at this point in the history
  • Loading branch information
whizsid committed Jun 3, 2021
1 parent ed6a198 commit 9b35fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function splitRequest(?Request $request): array {
// Serializing and validating data
if ($request) {
Validator::validate($request);
$requestSerializer = new ClassSerializer($request::class);
$requestSerializer = new ClassSerializer(get_class($request));
$serialized = $requestSerializer->serialize($request);

$bodyField = $request->getBodyField();
Expand Down

0 comments on commit 9b35fe9

Please sign in to comment.