Skip to content

Commit

Permalink
[BUG] Request can be empty (or null)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Mehani <olivier.mehani@learnosity.com>
  • Loading branch information
shtrom committed Apr 2, 2024
1 parent ae55e19 commit d20163e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Services/PreHashStrings/LegacyPreHashString.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function __construct(string $service, bool $v1Compat = false)

public function getPreHashString(
array $security,
array $request,
?array $request,
?string $action = 'get',
?string $secret = null
): string {
Expand Down
4 changes: 2 additions & 2 deletions src/Services/PreHashStrings/PreHashStringInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ interface PreHashStringInterface
{
/* Generate a string ready to be signed
* @param array $security
* @param array $request
* @param array|null $request
* @param string|null $action
* @param string|null $secret only for legacy pre-hash string generation when $v1Compat is true
* @return string the pre-hash string
*/
public function getPreHashString(array $security, array $request, ?string $action, ?string $secret): string;
public function getPreHashString(array $security, ?array $request, ?string $action, ?string $secret): string;

/** Return a list of all supported services
* @return string[]
Expand Down

0 comments on commit d20163e

Please sign in to comment.