We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f533674 commit 590fb71Copy full SHA for 590fb71
src/Webhook.php
@@ -11,7 +11,7 @@
11
class Webhook
12
{
13
private static $eventSubscriptions = array();
14
- private static $receivedWebhook = false;
+ private static $receivedWebhook = null;
15
16
/**
17
* Subscribe to an incoming webhook request. The callback will be invoked when a matching webhook is received.
@@ -35,7 +35,7 @@ public static function subscribe($event, callable $callback)
35
public static function receive($input = null)
36
37
if (is_null($input)) {
38
- if (self::$receivedWebhook !== false) {
+ if (self::$receivedWebhook !== null) {
39
$input = self::$receivedWebhook;
40
} else {
41
$input = file_get_contents("php://input");
0 commit comments