Skip to content

Commit e03d6ee

Browse files
committed
return type should have string
1 parent 47a73b7 commit e03d6ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function constructEvent($sigHeader, $payload, $secret, $tolerance)
3737
* @param int $tolerance Number of seconds old the webhook can be before it's invalid
3838
* @return string 'pass' if valid, otherwise an error message
3939
*/
40-
public function verifyHeader($sigHeader, $payload, $secret, $tolerance)
40+
public function verifyHeader($sigHeader, $payload, $secret, $tolerance): string
4141
{
4242
$timestamp = (int) $this->getTimeStamp($sigHeader);
4343
$signature = $this->getSignature($sigHeader);

0 commit comments

Comments
 (0)