Skip to content

Commit

Permalink
Fix static analysis to JsonResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Aug 14, 2021
1 parent a1ee673 commit 1342ec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JsonResponse.php
Expand Up @@ -81,6 +81,7 @@ private function encode($data, int $options): string
}

try {
/** @psalm-suppress UnusedFunctionCall */
json_encode(null);
$json = json_encode($data, $options);

Expand Down

0 comments on commit 1342ec8

Please sign in to comment.