Skip to content

Commit

Permalink
Use the non-memoized calls to be able to test the hash memoization
Browse files Browse the repository at this point in the history
  • Loading branch information
Mopolo committed Nov 25, 2020
1 parent 741a33a commit cc37dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/WebService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ final public function getPayload(): object
final public function getPayloadHash(): string
{
if ($this instanceof WithCustomPayloadHash) {
return $this->hash ??= $this->getHash($this->getPayload());
return $this->hash ??= $this->getHash($this->payload());
}

return $this->hash ??= sha1(serialize($this->getPayload()));
return $this->hash ??= sha1(serialize($this->payload()));
}

final public function isAsyncCall(): bool
Expand Down

0 comments on commit cc37dc9

Please sign in to comment.